/** * Restore object from trash * * @param void * @return null */ function restore_from_trash() { if (!$this->active_object->canDelete($this->logged_user)) { $this->httpError(HTTP_ERR_FORBIDDEN, null, true, $this->request->isApiCall()); } // if $this->executeOnActiveObject('restoreFromTrash', null, lang(':type ":name" has been restored', array('type' => $this->active_object->getVerboseType(), 'name' => $this->active_object->getName())), lang('Failed to restore :type ":name"', array('type' => $this->active_object->getVerboseType(true), 'name' => $this->active_object->getName()))); }