kernel/private/classes/ezptopologicalsortnode.php
public function popChild()
    {
        // Rewind if current iterator is not valid
        if (! $this->children->valid() )
            $this->children->rewind();

        // If current iterator is still not valid it means there are no children anymore
        if (! $this->children->valid() )
            return false;

        $child = $this->children->current();
        $this->children->detach( $child );
        return $child;
    }
public function popChild()
    {
        // Rewind if current iterator is not valid
        if (! $this->children->valid() )
            $this->children->rewind();

        // If current iterator is still not valid it means there are no children anymore
        if (! $this->children->valid() )
            return false;

        $child = $this->children->current();
        $this->children->detach( $child );
        return $child;
    }
public function popChild ( ) { // Rewind if current iterator is not valid if ( ! $ this -> children -> valid ( ) ) $ this -> children -> rewind ( ) ; // If current iterator is still not valid it means there are no children anymore if ( ! $ this -> children -> valid ( ) ) return false ; $ child = $ this -> children -> current ( ) ; $ this -> children -> detach ( $ child ) ; return $ child ; }
Pop a child from the list of children.

@return ezpTopologicalSortNode|false ezpTopologicalSortNode or false if list is empty
Pop a child from the list of children .