/** * Delete this folder * * @param void * @return boolean */ function delete() { $files = $this->getAllFiles(); if (is_array($files)) { foreach ($files as $file) { $file->delete(); } } // if return parent::delete(); }
/** * Return object path (location of the object) * * @param void * @return string */ function getObjectPath() { $f = $this->getParent(); if (is_null($f)) { $path = parent::getObjectPath(); } else { $path = $f->getObjectPath(); } $path[] = $this->getObjectName(); return $path; }