source/Application/Controller/Admin/ArticleList.php
public function getCategoryList($sType, $sValue)
    {
        /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCatTree parent category tree */
        $oCatTree = oxNew(\OxidEsales\Eshop\Application\Model\CategoryList::class);
        $oCatTree->loadList();
        if ($sType === 'cat') {
            foreach ($oCatTree as $oCategory) {
                if ($oCategory->oxcategories__oxid->value == $sValue) {
                    $oCategory->selected = 1;
                    break;
                }
            }
        }

        return $oCatTree;
    }
public function getCategoryList($sType, $sValue)
    {
        /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCatTree parent category tree */
        $oCatTree = oxNew(\OxidEsales\Eshop\Application\Model\CategoryList::class);
        $oCatTree->loadList();
        if ($sType === 'cat') {
            foreach ($oCatTree as $oCategory) {
                if ($oCategory->oxcategories__oxid->value == $sValue) {
                    $oCategory->selected = 1;
                    break;
                }
            }
        }

        return $oCatTree;
    }
public function getCategoryList ( $ sType , $ sValue ) { /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCatTree parent category tree */ $ oCatTree = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ CategoryList :: class ) ; $ oCatTree -> loadList ( ) ; if ( $ sType === 'cat' ) { foreach ( $ oCatTree as $ oCategory ) { if ( $ oCategory -> oxcategories__oxid -> value == $ sValue ) { $ oCategory -> selected = 1 ; break ; } } } return $ oCatTree ; }
Load category list, mark active category;

@param string $sType  active list type
@param string $sValue active list item id

@return \OxidEsales\Eshop\Application\Model\CategoryList
Load category list mark active category ;