Exemplo n.º 1
0
 function init()
 {
     parent::init();
     if (empty($this->dataset)) {
         return;
     }
     $map =& AMPContent_Map::instance();
     foreach ($this->dataset as $section_id => $draft) {
         if ($section_id == AMP_CONTENT_SECTION_ID_ROOT) {
             continue;
         }
         if (!($children = $map->getDescendants($section_id))) {
             continue;
         }
         $this->appendChildren($children);
     }
 }
Exemplo n.º 2
0
 function init()
 {
     $this->filterByPermission();
     parent::init();
 }