public function delete($path)
  {
    $result = false;
    $parts = $this->split($path);

    $name = array_shift($parts);
    if (!sizeof($parts)) {
      if (isset($this->_ownData[$name])) {
        unset($this->_ownData[$name]);
        $result = true;
      }
    } elseif (isset($this->_subTrees[$name])) {
      $subtree = $this->_subTrees[$name];
      /* @var $subtree Wrapper_FS_Changes */

      $result = $subtree->delete($parts);
      if ($result && !$subtree->count()) {
        unset($this->_subTrees[$name]);
      }
    }

    return $result;
  }
public function delete($path)
  {
    $result = false;
    $parts = $this->split($path);

    $name = array_shift($parts);
    if (!sizeof($parts)) {
      if (isset($this->_ownData[$name])) {
        unset($this->_ownData[$name]);
        $result = true;
      }
    } elseif (isset($this->_subTrees[$name])) {
      $subtree = $this->_subTrees[$name];
      /* @var $subtree Wrapper_FS_Changes */

      $result = $subtree->delete($parts);
      if ($result && !$subtree->count()) {
        unset($this->_subTrees[$name]);
      }
    }

    return $result;
  }
public function delete ( $ path ) { $ result = false ; $ parts = $ this -> split ( $ path ) ; $ name = array_shift ( $ parts ) ; if ( ! sizeof ( $ parts ) ) { if ( isset ( $ this -> _ownData [ $ name ] ) ) { unset ( $ this -> _ownData [ $ name ] ) ; $ result = true ; } } elseif ( isset ( $ this -> _subTrees [ $ name ] ) ) { $ subtree = $ this -> _subTrees [ $ name ] ; /* @var $subtree Wrapper_FS_Changes */ $ result = $ subtree -> delete ( $ parts ) ; if ( $ result && ! $ subtree -> count ( ) ) { unset ( $ this -> _subTrees [ $ name ] ) ; } } return $ result ; }
Delete stream entity from array

@param string $path Path

@return boolean
Delete stream entity from array