public function cascade_data($args = array())
    {
        if (!$this->hasChildren()) {
            return false;
        }

        if (count($args) >= 2) {
            $this->children()->data($args[0], $args[1]);
        } else {
            $this->children()->data($args[0]);
        }

        return true;
    }
public function cascade_data($args = array())
    {
        if (!$this->hasChildren()) {
            return false;
        }

        if (count($args) >= 2) {
            $this->children()->data($args[0], $args[1]);
        } else {
            $this->children()->data($args[0]);
        }

        return true;
    }
public function cascade_data ( $ args = array ( ) ) { if ( ! $ this -> hasChildren ( ) ) { return false ; } if ( count ( $ args ) >= 2 ) { $ this -> children ( ) -> data ( $ args [ 0 ] , $ args [ 1 ] ) ; } else { $ this -> children ( ) -> data ( $ args [ 0 ] ) ; } return true ; }
Cascade data to children.

@param array $args

@return bool
Cascade data to children .