Swat/SwatContainer.php
public function getFirst()
    {
        if (count($this->children)) {
            reset($this->children);
            return current($this->children);
        } else {
            return null;
        }
    }
public function getFirst()
    {
        if (count($this->children)) {
            reset($this->children);
            return current($this->children);
        } else {
            return null;
        }
    }
public function getFirst ( ) { if ( count ( $ this -> children ) ) { reset ( $ this -> children ) ; return current ( $ this -> children ) ; } else { return null ; } }
Gets the first child widget

Retrieves the first child widget from the list of widgets in the
container.

@return SwatWidget the first widget in this container or null if there
are no widgets in this container.
Gets the first child widget