Swat/SwatContainer.php
public function getChildren($class_name = null)
    {
        if ($class_name === null) {
            return $this->children;
        }

        $out = array();

        foreach ($this->children as $child_widget) {
            if ($child_widget instanceof $class_name) {
                $out[] = $child_widget;
            }
        }

        return $out;
    }
public function getChildren($class_name = null)
    {
        if ($class_name === null) {
            return $this->children;
        }

        $out = array();

        foreach ($this->children as $child_widget) {
            if ($child_widget instanceof $class_name) {
                $out[] = $child_widget;
            }
        }

        return $out;
    }
public function getChildren ( $ class_name = null ) { if ( $ class_name === null ) { return $ this -> children ; } $ out = array ( ) ; foreach ( $ this -> children as $ child_widget ) { if ( $ child_widget instanceof $ class_name ) { $ out [ ] = $ child_widget ; } } return $ out ; }
Gets all child widgets

Retrieves an array of all widgets directly contained by this container.

@param string $class_name optional class name. If set, only widgets that
are instances of <code>$class_name</code> are
returned.

@return array the child widgets of this container.
Gets all child widgets