function do_main() { $this->oPage->setBreadcrumbDetails(_kt('Immutable')); //check if we need confirmation for symblolic links linking to this document if (count($this->oDocument->getSymbolicLinks()) > 0 && KTutil::arrayGet($_REQUEST, 'postReceived') != 1) { $this->redirectTo("confirm"); } $oTemplate =& $this->oValidator->validateTemplate('ktstandard/action/immutable'); $oForm = $this->form_main(); $oTemplate->setData(array('context' => &$this, 'form' => $oForm)); return $oTemplate->render(); }
function do_main() { //if there are symbolic links linking to this document we need confirmation if (count($this->oDocument->getSymbolicLinks()) > 0 && KTutil::arrayGet($_REQUEST, 'postReceived') != 1) { $this->redirectTo("confirm"); } $this->oPage->setBreadcrumbDetails(_kt('Archive Document')); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/archive'); $oForm = $this->form_main(); $oTemplate->setData(array('context' => &$this, 'form' => $oForm)); return $oTemplate->render(); }
function do_collectinfo() { $this->store_lists(); $this->get_lists(); //check if a the symlinks deletion confirmation has been passed yet if (KTutil::arrayGet($_REQUEST['data'], 'archive_confirmed') != 1) { //check if there are actually any symlinks involved. if ($this->symlinksLinkingToCurrentList()) { $this->redirectTo("confirm"); } } $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate('ktcore/bulk_action_info'); return $oTemplate->render(array('context' => $this, 'form' => $this->form_collectinfo())); }