Exemplo n.º 1
0
 public function loadChilds(Element_Interface $element)
 {
     $this->amount++;
     if ($element instanceof Document) {
         if ($element instanceof Document_PageSnippet) {
             $element->getElements();
         }
     } else {
         if ($element instanceof Asset) {
             if (!$element instanceof Asset_Folder) {
                 $element->setData(null);
                 $element->getData();
             }
         } else {
             if ($element instanceof Object_Abstract) {
             }
         }
     }
     // for all
     $element->getProperties();
     $element->getPermissions();
     if (method_exists($element, "getScheduledTasks")) {
         $element->getScheduledTasks();
     }
     $element->_fulldump = true;
     if (method_exists($element, "getChilds")) {
         if ($element instanceof Object_Abstract) {
             // because we also want variants
             $childs = $element->getChilds(array(Object_Abstract::OBJECT_TYPE_FOLDER, Object_Abstract::OBJECT_TYPE_VARIANT, Object_Abstract::OBJECT_TYPE_OBJECT));
         } else {
             $childs = $element->getChilds();
         }
         foreach ($childs as $child) {
             $this->loadChilds($child);
         }
     }
 }