source/Application/Controller/FrontendController.php
public function getListDisplayType()
    {
        if ($this->_sListDisplayType == null) {
            $this->_sListDisplayType = $this->getCustomListDisplayType();

            if (!$this->_sListDisplayType) {
                $this->_sListDisplayType = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sDefaultListDisplayType');
            }

            $this->_sListDisplayType = in_array(( string ) $this->_sListDisplayType, $this->_aListDisplayTypes) ?
                $this->_sListDisplayType : 'infogrid';

            // writing to session
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('ldtype')) {
                \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('ldtype', $this->_sListDisplayType);
            }
        }

        return $this->_sListDisplayType;
    }
public function getListDisplayType()
    {
        if ($this->_sListDisplayType == null) {
            $this->_sListDisplayType = $this->getCustomListDisplayType();

            if (!$this->_sListDisplayType) {
                $this->_sListDisplayType = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sDefaultListDisplayType');
            }

            $this->_sListDisplayType = in_array(( string ) $this->_sListDisplayType, $this->_aListDisplayTypes) ?
                $this->_sListDisplayType : 'infogrid';

            // writing to session
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('ldtype')) {
                \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('ldtype', $this->_sListDisplayType);
            }
        }

        return $this->_sListDisplayType;
    }
public function getListDisplayType ( ) { if ( $ this -> _sListDisplayType == null ) { $ this -> _sListDisplayType = $ this -> getCustomListDisplayType ( ) ; if ( ! $ this -> _sListDisplayType ) { $ this -> _sListDisplayType = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sDefaultListDisplayType' ) ; } $ this -> _sListDisplayType = in_array ( ( string ) $ this -> _sListDisplayType , $ this -> _aListDisplayTypes ) ? $ this -> _sListDisplayType : 'infogrid' ; // writing to session if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'ldtype' ) ) { \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'ldtype' , $ this -> _sListDisplayType ) ; } } return $ this -> _sListDisplayType ; }
Returns list type

@return string
Returns list type