コード例 #1
0
ファイル: folder.php プロジェクト: mrdeadmouse/u136006
 protected function restoreNonRecursive($restoredBy)
 {
     return parent::restoreInternal($restoredBy);
 }
コード例 #2
0
ファイル: file.php プロジェクト: mrdeadmouse/u136006
 /**
  * Restores object from trash can.
  * @param int $restoredBy Id of user (or SystemUser::SYSTEM_USER_ID).
  * @return bool
  */
 public function restore($restoredBy)
 {
     $needRecalculate = $this->deletedType == ObjectTable::DELETED_TYPE_CHILD;
     $status = parent::restoreInternal($restoredBy);
     if ($status && $needRecalculate) {
         $this->recalculateDeletedTypeAfterRestore($restoredBy);
     }
     if ($status) {
         Driver::getInstance()->sendChangeStatusToSubscribers($this);
     }
     return $status;
 }