/** * Extra getter to guarantee compatibility with templates. * * @param string $sName parameter name * * @return mixed */ public function __get($sName) { switch ($sName) { case 'expanded': return $this->getExpanded(); break; } return parent::__get($sName); }
/** * Extra getter to guarantee compatibility with templates * * @param string $sName name of variable to get * * @return string */ public function __get($sName) { switch ($sName) { case 'aSubCats': return $this->_aSubCats; break; case 'aContent': return $this->_aContentCats; break; case 'iArtCnt': return $this->getNrOfArticles(); break; case 'isVisible': return $this->getIsVisible(); break; case 'expanded': return $this->getExpanded(); break; case 'hasSubCats': return $this->getHasSubCats(); break; case 'hasVisibleSubCats': return $this->getHasVisibleSubCats(); break; case 'openlink': case 'closelink': case 'link': //case 'toListLink': //case 'noparamlink': return $this->getLink(); break; case 'dimagedir': return $this->getPictureUrl(); break; } return parent::__get($sName); }
/** * Magic getter, deals with deprecated values * * @param string $sName Variable name * * @return mixed */ public function __get($sName) { $myUtils = oxUtils::getInstance(); switch ($sName) { case 'aSelectlist': if ($this->getConfig()->getConfigParam('bl_perfLoadSelectLists')) { return $this->aSelectlist = $this->getSelectLists(); } return; break; } return parent::__get($sName); }
/** * Extra getter to guarantee compatibility with templates * * @param string $sName name of variable to return * * @return mixed */ public function __get($sName) { switch ($sName) { case 'oxurl': case 'openlink': case 'closelink': case 'link': $sValue = $this->getLink(); break; case 'iArtCnt': $sValue = $this->getNrOfArticles(); break; case 'isVisible': $sValue = $this->getIsVisible(); break; case 'hasVisibleSubCats': $sValue = $this->getHasVisibleSubCats(); break; default: $sValue = parent::__get($sName); break; } return $sValue; }
/** * Magic getter, deals with values which are loaded on demand. * Additionally it sets default value for unknown picture fields * * @param string $sName Variable name * * @return mixed */ public function __get($sName) { $this->{$sName} = parent::__get($sName); if ($this->{$sName}) { // since the field could have been loaded via lazy loading $this->_assignParentFieldValue($sName); } return $this->{$sName}; }
/** * Magic getter, deals with deprecated values and long description which is loaded on demand. * Additionally it sets default value for unknown picture fields * * @param string $sName Variable name * * @return mixed */ public function __get($sName) { $myUtils = oxUtils::getInstance(); // deprecated since 2011.03.10, should be used getArticleLongDesc() / getLongDesc() if (strpos($sName, 'oxarticles__oxlongdesc') === 0) { return $this->getArticleLongDesc(); } $this->{$sName} = parent::__get($sName); if ($this->{$sName}) { // since the field could have been loaded via lazyloading $this->_assignParentFieldValue($sName); } return $this->{$sName}; }