예제 #1
0
 /**
  * Returns the children of the asset if the asset is a folder
  *
  * @return array
  */
 function getChildren()
 {
     $children = array();
     if ($this->asset->hasChilds()) {
         foreach ($this->asset->getChilds() as $child) {
             if ($child->isAllowed("view")) {
                 try {
                     if ($child = $this->getChild($child)) {
                         $children[] = $child;
                     }
                 } catch (\Exception $e) {
                     \Logger::warning($e);
                 }
             }
         }
     }
     return $children;
 }