public function add($path, Entity_Interface $entity)
  {
    $result = false;

    if (strlen($path)) {
      $name = null;
      $subtree = $this->subtree($path, $name, true);
      $subtree->_ownData[$name] = $entity;

      $result = true;
    }

    return $result;
  }
public function add($path, Entity_Interface $entity)
  {
    $result = false;

    if (strlen($path)) {
      $name = null;
      $subtree = $this->subtree($path, $name, true);
      $subtree->_ownData[$name] = $entity;

      $result = true;
    }

    return $result;
  }
public function add ( $ path , Entity_Interface $ entity ) { $ result = false ; if ( strlen ( $ path ) ) { $ name = null ; $ subtree = $ this -> subtree ( $ path , $ name , true ) ; $ subtree -> _ownData [ $ name ] = $ entity ; $ result = true ; } return $ result ; }
Add stream entity to changes array

@param string           $path   Path
@param Entity_Interface $entity Stream entity

@return boolean
Add stream entity to changes array