protected function markDeletedNonRecursiveInternal($deletedBy, $deletedType = ObjectTable::DELETED_TYPE_ROOT) { $success = parent::markDeletedInternal($deletedBy, $deletedType); if ($success) { DeletedLog::addFolder($this, $deletedBy, $this->errorCollection); } return $success; }
/** * Internal method for deleting file as child of folder. * @param int $deletedBy Id of user. * @param int $deletedType Type of delete (@see ObjectTable::DELETED_TYPE_ROOT, ObjectTable::DELETED_TYPE_CHILD) * @return bool * @internal */ public function markDeletedInternal($deletedBy, $deletedType = ObjectTable::DELETED_TYPE_ROOT) { $success = parent::markDeletedInternal($deletedBy, $deletedType); if ($success) { DeletedLog::addFile($this, $deletedBy, $this->errorCollection); } return $success; }