mageekguy\atoum\template::getChildren PHP Method

getChildren() public method

public getChildren ( )
    public function getChildren()
    {
        return array_values($this->children);
    }

Usage Example

Ejemplo n.º 1
0
 public function addTag($tag, atoum\template $template)
 {
     $children = $template->getChildren();
     while (($child = array_shift($children)) !== null) {
         if ($child->getTag() === $tag) {
             $this->tags[] = $child;
         }
         $children = array_merge($child->getChildren(), $children);
     }
     return $this;
 }
All Usage Examples Of mageekguy\atoum\template::getChildren