source/Application/Controller/Admin/ArticleList.php
public function render()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $sPwrSearchFld = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("pwrsearchfld");
        $sPwrSearchFld = $sPwrSearchFld ? strtolower($sPwrSearchFld) : "oxtitle";

        $oArticle = null;
        $oList = $this->getItemList();
        if ($oList) {
            foreach ($oList as $key => $oArticle) {
                $sFieldName = "oxarticles__{$sPwrSearchFld}";

                // formatting view
                if (!$myConfig->getConfigParam('blSkipFormatConversion')) {
                    if ($oArticle->$sFieldName->fldtype == "datetime") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDateTime($oArticle->$sFieldName);
                    } elseif ($oArticle->$sFieldName->fldtype == "timestamp") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBTimestamp($oArticle->$sFieldName);
                    } elseif ($oArticle->$sFieldName->fldtype == "date") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDate($oArticle->$sFieldName);
                    }
                }

                $oArticle->pwrsearchval = $oArticle->$sFieldName->value;
                $oList[$key] = $oArticle;
            }
        }

        parent::render();

        // load fields
        if (!$oArticle && $oList) {
            $oArticle = $oList->getBaseObject();
        }
        $this->_aViewData["pwrsearchfields"] = $oArticle ? $this->getSearchFields() : null;
        $this->_aViewData["pwrsearchfld"] = strtoupper($sPwrSearchFld);

        $aFilter = $this->getListFilter();
        if (isset($aFilter["oxarticles"][$sPwrSearchFld])) {
            $this->_aViewData["pwrsearchinput"] = $aFilter["oxarticles"][$sPwrSearchFld];
        }

        $sType = '';
        $sValue = '';

        $sArtCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("art_category");
        if ($sArtCat && strstr($sArtCat, "@@") !== false) {
            list($sType, $sValue) = explode("@@", $sArtCat);
        }
        $this->_aViewData["art_category"] = $sArtCat;

        // parent categorie tree
        $this->_aViewData["cattree"] = $this->getCategoryList($sType, $sValue);

        // manufacturer list
        $this->_aViewData["mnftree"] = $this->getManufacturerlist($sType, $sValue);

        // vendor list
        $this->_aViewData["vndtree"] = $this->getVendorList($sType, $sValue);

        return "article_list.tpl";
    }
public function render()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $sPwrSearchFld = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("pwrsearchfld");
        $sPwrSearchFld = $sPwrSearchFld ? strtolower($sPwrSearchFld) : "oxtitle";

        $oArticle = null;
        $oList = $this->getItemList();
        if ($oList) {
            foreach ($oList as $key => $oArticle) {
                $sFieldName = "oxarticles__{$sPwrSearchFld}";

                // formatting view
                if (!$myConfig->getConfigParam('blSkipFormatConversion')) {
                    if ($oArticle->$sFieldName->fldtype == "datetime") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDateTime($oArticle->$sFieldName);
                    } elseif ($oArticle->$sFieldName->fldtype == "timestamp") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBTimestamp($oArticle->$sFieldName);
                    } elseif ($oArticle->$sFieldName->fldtype == "date") {
                        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDate($oArticle->$sFieldName);
                    }
                }

                $oArticle->pwrsearchval = $oArticle->$sFieldName->value;
                $oList[$key] = $oArticle;
            }
        }

        parent::render();

        // load fields
        if (!$oArticle && $oList) {
            $oArticle = $oList->getBaseObject();
        }
        $this->_aViewData["pwrsearchfields"] = $oArticle ? $this->getSearchFields() : null;
        $this->_aViewData["pwrsearchfld"] = strtoupper($sPwrSearchFld);

        $aFilter = $this->getListFilter();
        if (isset($aFilter["oxarticles"][$sPwrSearchFld])) {
            $this->_aViewData["pwrsearchinput"] = $aFilter["oxarticles"][$sPwrSearchFld];
        }

        $sType = '';
        $sValue = '';

        $sArtCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("art_category");
        if ($sArtCat && strstr($sArtCat, "@@") !== false) {
            list($sType, $sValue) = explode("@@", $sArtCat);
        }
        $this->_aViewData["art_category"] = $sArtCat;

        // parent categorie tree
        $this->_aViewData["cattree"] = $this->getCategoryList($sType, $sValue);

        // manufacturer list
        $this->_aViewData["mnftree"] = $this->getManufacturerlist($sType, $sValue);

        // vendor list
        $this->_aViewData["vndtree"] = $this->getVendorList($sType, $sValue);

        return "article_list.tpl";
    }
public function render ( ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ sPwrSearchFld = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "pwrsearchfld" ) ; $ sPwrSearchFld = $ sPwrSearchFld ? strtolower ( $ sPwrSearchFld ) : "oxtitle" ; $ oArticle = null ; $ oList = $ this -> getItemList ( ) ; if ( $ oList ) { foreach ( $ oList as $ key => $ oArticle ) { $ sFieldName = "oxarticles__{$sPwrSearchFld}" ; // formatting view if ( ! $ myConfig -> getConfigParam ( 'blSkipFormatConversion' ) ) { if ( $ oArticle -> $ sFieldName -> fldtype == "datetime" ) { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> convertDBDateTime ( $ oArticle -> $ sFieldName ) ; } elseif ( $ oArticle -> $ sFieldName -> fldtype == "timestamp" ) { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> convertDBTimestamp ( $ oArticle -> $ sFieldName ) ; } elseif ( $ oArticle -> $ sFieldName -> fldtype == "date" ) { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> convertDBDate ( $ oArticle -> $ sFieldName ) ; } } $ oArticle -> pwrsearchval = $ oArticle -> $ sFieldName -> value ; $ oList [ $ key ] = $ oArticle ; } } parent :: render ( ) ; // load fields if ( ! $ oArticle && $ oList ) { $ oArticle = $ oList -> getBaseObject ( ) ; } $ this -> _aViewData [ "pwrsearchfields" ] = $ oArticle ? $ this -> getSearchFields ( ) : null ; $ this -> _aViewData [ "pwrsearchfld" ] = strtoupper ( $ sPwrSearchFld ) ; $ aFilter = $ this -> getListFilter ( ) ; if ( isset ( $ aFilter [ "oxarticles" ] [ $ sPwrSearchFld ] ) ) { $ this -> _aViewData [ "pwrsearchinput" ] = $ aFilter [ "oxarticles" ] [ $ sPwrSearchFld ] ; } $ sType = '' ; $ sValue = '' ; $ sArtCat = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "art_category" ) ; if ( $ sArtCat && strstr ( $ sArtCat , "@@" ) !== false ) { list ( $ sType , $ sValue ) = explode ( "@@" , $ sArtCat ) ; } $ this -> _aViewData [ "art_category" ] = $ sArtCat ; // parent categorie tree $ this -> _aViewData [ "cattree" ] = $ this -> getCategoryList ( $ sType , $ sValue ) ; // manufacturer list $ this -> _aViewData [ "mnftree" ] = $ this -> getManufacturerlist ( $ sType , $ sValue ) ; // vendor list $ this -> _aViewData [ "vndtree" ] = $ this -> getVendorList ( $ sType , $ sValue ) ; return "article_list.tpl" ; }
Collects articles base data and passes them according to filtering rules,
returns name of template file "article_list.tpl".

@return string
Collects articles base data and passes them according to filtering rules returns name of template file article_list . tpl .