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