public function hasChildrenVisible()
    {
        foreach ($this->getChildren() as $child) {
            if ($child->getState() == static::STATE_ONLINE) {
                return true;
            }
        }

        return false;
    }
public function hasChildrenVisible()
    {
        foreach ($this->getChildren() as $child) {
            if ($child->getState() == static::STATE_ONLINE) {
                return true;
            }
        }

        return false;
    }
public function hasChildrenVisible ( ) { foreach ( $ this -> getChildren ( ) as $ child ) { if ( $ child -> getState ( ) == static :: STATE_ONLINE ) { return true ; } } return false ; }
Looks for at least one online children.

@return boolean                                  True if at least one children of the page is online.

@deprecated
Looks for at least one online children .