source/Application/Model/User.php
public function getRecommListsCount($sOx = null)
    {
        if (!$sOx) {
            $sOx = $this->getId();
        }

        if ($this->_iCntRecommLists === null || $sOx) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $this->_iCntRecommLists = 0;
            $iShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
            $sSelect = 'select count(oxid) from oxrecommlists where oxuserid = ' . $oDb->quote($sOx) . ' and oxshopid ="' . $iShopId . '"';
            $this->_iCntRecommLists = $oDb->getOne($sSelect);
        }

        return $this->_iCntRecommLists;
    }
public function getRecommListsCount($sOx = null)
    {
        if (!$sOx) {
            $sOx = $this->getId();
        }

        if ($this->_iCntRecommLists === null || $sOx) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $this->_iCntRecommLists = 0;
            $iShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
            $sSelect = 'select count(oxid) from oxrecommlists where oxuserid = ' . $oDb->quote($sOx) . ' and oxshopid ="' . $iShopId . '"';
            $this->_iCntRecommLists = $oDb->getOne($sSelect);
        }

        return $this->_iCntRecommLists;
    }
public function getRecommListsCount ( $ sOx = null ) { if ( ! $ sOx ) { $ sOx = $ this -> getId ( ) ; } if ( $ this -> _iCntRecommLists === null || $ sOx ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ this -> _iCntRecommLists = 0 ; $ iShopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; $ sSelect = 'select count(oxid) from oxrecommlists where oxuserid = ' . $ oDb -> quote ( $ sOx ) . ' and oxshopid ="' . $ iShopId . '"' ; $ this -> _iCntRecommLists = $ oDb -> getOne ( $ sSelect ) ; } return $ this -> _iCntRecommLists ; }
Returns recommlist count

@param string $sOx object ID (default is null)

@deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.

@return int
Returns recommlist count