protected function _getSelect()
    {
        $select = $this->_model->select();
        if ($this->_hasPosition) {
            $select->order('pos');
        } else if (!$select->hasPart('order') && $this->_defaultOrder) {
            $select->order(
                $this->_defaultOrder['field'],
                $this->_defaultOrder['direction']
            );
        }
        return $select;
    }
protected function _getSelect()
    {
        $select = $this->_model->select();
        if ($this->_hasPosition) {
            $select->order('pos');
        } else if (!$select->hasPart('order') && $this->_defaultOrder) {
            $select->order(
                $this->_defaultOrder['field'],
                $this->_defaultOrder['direction']
            );
        }
        return $select;
    }
protected function _getSelect ( ) { $ select = $ this -> _model -> select ( ) ; if ( $ this -> _hasPosition ) { $ select -> order ( 'pos' ) ; } else if ( ! $ select -> hasPart ( 'order' ) && $ this -> _defaultOrder ) { $ select -> order ( $ this -> _defaultOrder [ 'field' ] , $ this -> _defaultOrder [ 'direction' ] ) ; } return $ select ; }
override this method to handle the output of this view. Just return the
select statement which serves your needs.
override this method to handle the output of this view . Just return the select statement which serves your needs .