Swat/SwatContainer.php
public function getDescendantStates()
    {
        $states = array();

        foreach ($this->getDescendants('SwatState') as $id => $object) {
            $states[$id] = $object->getState();
        }

        return $states;
    }
public function getDescendantStates()
    {
        $states = array();

        foreach ($this->getDescendants('SwatState') as $id => $object) {
            $states[$id] = $object->getState();
        }

        return $states;
    }
public function getDescendantStates ( ) { $ states = array ( ) ; foreach ( $ this -> getDescendants ( 'SwatState' ) as $ id => $ object ) { $ states [ $ id ] = $ object -> getState ( ) ; } return $ states ; }
Gets descendant states

Retrieves an array of states of all stateful UI-objects in the widget
subtree below this container.

@return array an array of UI-object states with UI-object identifiers as
array keys.
Gets descendant states