Esempio n. 1
0
 protected function restoreNonRecursive($restoredBy)
 {
     return parent::restoreInternal($restoredBy);
 }
Esempio n. 2
0
 /**
  * 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;
 }