Example #1
0
 protected function loadMenuItems(Item $MenuItem, Structure $oCurrentStructure)
 {
     $aStructures = $oCurrentStructure->getStructures();
     foreach ($aStructures as $oStructure) {
         if (!$oStructure->active || $oStructure->deleted || $oStructure->anchor) {
             continue;
         }
         $MenuItem->addChildItem($oStructure->name, $oStructure->path);
         $this->loadMenuItems($MenuItem->findChildItemByPath($oStructure->path), $oStructure);
     }
 }