source/Application/Model/ContentList.php
public function loadCatMenues()
    {
        $this->_load(self::TYPE_CATEGORY_MENU);
        $aArray = [];

        if ($this->count()) {
            foreach ($this as $oContent) {
                // add into category tree
                if (!isset($aArray[$oContent->getCategoryId()])) {
                    $aArray[$oContent->getCategoryId()] = [];
                }

                $aArray[$oContent->oxcontents__oxcatid->value][] = $oContent;
            }
        }

        $this->_aArray = $aArray;
    }
public function loadCatMenues()
    {
        $this->_load(self::TYPE_CATEGORY_MENU);
        $aArray = [];

        if ($this->count()) {
            foreach ($this as $oContent) {
                // add into category tree
                if (!isset($aArray[$oContent->getCategoryId()])) {
                    $aArray[$oContent->getCategoryId()] = [];
                }

                $aArray[$oContent->oxcontents__oxcatid->value][] = $oContent;
            }
        }

        $this->_aArray = $aArray;
    }
public function loadCatMenues ( ) { $ this -> _load ( self :: TYPE_CATEGORY_MENU ) ; $ aArray = [ ] ; if ( $ this -> count ( ) ) { foreach ( $ this as $ oContent ) { // add into category tree if ( ! isset ( $ aArray [ $ oContent -> getCategoryId ( ) ] ) ) { $ aArray [ $ oContent -> getCategoryId ( ) ] = [ ] ; } $ aArray [ $ oContent -> oxcontents__oxcatid -> value ] [ ] = $ oContent ; } } $ this -> _aArray = $ aArray ; }
Load Array of Menue items and change keys of aList to catid
Load Array of Menue items and change keys of aList to catid