src/Model/Tables/MelisPlatformSchemeTable.php
public function getActiveScheme($colorsOnly = false)
    {
        $select = $this->tableGateway->getSql()->select();

        if($colorsOnly) {
            $select->columns(array(
                'pscheme_id', 'pscheme_name', 'pscheme_colors', 'pscheme_is_active'
            ));
        }

        $select->where->equalTo('pscheme_is_active', 1);

        $resultSet = $this->tableGateway->selectWith($select);

        return $resultSet;
    }
public function getActiveScheme($colorsOnly = false)
    {
        $select = $this->tableGateway->getSql()->select();

        if($colorsOnly) {
            $select->columns(array(
                'pscheme_id', 'pscheme_name', 'pscheme_colors', 'pscheme_is_active'
            ));
        }

        $select->where->equalTo('pscheme_is_active', 1);

        $resultSet = $this->tableGateway->selectWith($select);

        return $resultSet;
    }
public function getActiveScheme ( $ colorsOnly = false ) { $ select = $ this -> tableGateway -> getSql ( ) -> select ( ) ; if ( $ colorsOnly ) { $ select -> columns ( array ( 'pscheme_id' , 'pscheme_name' , 'pscheme_colors' , 'pscheme_is_active' ) ) ; } $ select -> where -> equalTo ( 'pscheme_is_active' , 1 ) ; $ resultSet = $ this -> tableGateway -> selectWith ( $ select ) ; return $ resultSet ; }
Returns the currently active scheme
@param bool $colorsOnly
@return null|\Zend\Db\ResultSet\ResultSetInterface
Returns the currently active scheme