Пример #1
0
 /**
  * Return all registered child components of a component
  *
  * This adheres to parent settings in the component ini file
  *
  * @param ICE_Component $component The component object whose children you want to get
  * @return array
  */
 public function get_children(ICE_Component $component)
 {
     // the components that will be returned
     $components = array();
     // find all registered component where parent is the target component
     foreach ($this->get_all() as $component_i) {
         if ($component->is_parent_of($component_i)) {
             $components[] = $component_i;
         }
     }
     return $components;
 }