Log/composite.php
function close()
    {
        /* If we haven't been opened, there's nothing more to do. */
        if (!$this->_opened) {
            return true;
        }

        /* Attempt to close each of our children. */
        $closed = true;
        foreach ($this->_children as $child) {
            if ($child->_opened) {
                $closed &= $child->close();
            }
        }

        /* Clear the opened state for consistency. */
        $this->_opened = false;

        /* If all children were closed, return success. */
        return $closed;
    }
function close()
    {
        /* If we haven't been opened, there's nothing more to do. */
        if (!$this->_opened) {
            return true;
        }

        /* Attempt to close each of our children. */
        $closed = true;
        foreach ($this->_children as $child) {
            if ($child->_opened) {
                $closed &= $child->close();
            }
        }

        /* Clear the opened state for consistency. */
        $this->_opened = false;

        /* If all children were closed, return success. */
        return $closed;
    }
function close ( ) { /* If we haven't been opened, there's nothing more to do. */ if ( ! $ this -> _opened ) { return true ; } /* Attempt to close each of our children. */ $ closed = true ; foreach ( $ this -> _children as $ child ) { if ( $ child -> _opened ) { $ closed &= $ child -> close ( ) ; } } /* Clear the opened state for consistency. */ $ this -> _opened = false ; /* If all children were closed, return success. */ return $ closed ; }
Closes all open child instances.

@return  True if all of the opened child instances were successfully
closed.

@access public
Closes all open child instances .