public function performPaste() { if (!in_array($_SESSION['clipboard']['cmd'], array('cut'))) { $message = __METHOD__ . ": cmd was not 'cut' ; may be a hack attempt!"; $this->ilias->raiseError($message, $this->ilias->error_obj->WARNING); } if ($_SESSION['clipboard']['cmd'] == 'cut') { if (isset($_GET['target_node']) && (int) $_GET['target_node']) { $_POST['nodes'] = array($_GET['target_node']); $this->performPasteIntoMultipleObjectsObject(); } } $this->ctrl->returnToParent($this); }
public function cancelSaveAttachments() { $this->ctrl->setParameter($this, 'type', 'attach'); $this->ctrl->returnToParent($this); }