public function request() { if (!$this->getRequestVar('id')) { return false; } $id = $this->getRequestVar('id', array(7, 9)); $this->message = new \fpcm\modules\nkorg\inactivity_manager\model\message($id); if ($this->buttonClicked('msgSave')) { $newmessage = $this->getRequestVar('msg'); $this->message->setText($newmessage['text']); $starttime = strtotime($newmessage['start']); $this->message->setStarttime($starttime); $stoptime = strtotime($newmessage['stop']); $this->message->setStoptime($stoptime); $commentsDiabled = isset($newmessage['nocomments']) ? true : false; $this->message->setNocomments($commentsDiabled); $res = $this->message->update(); if ($res) { $this->redirect('modules/config', array('key' => \fpcm\model\abstracts\module::getModuleKeyByFolder(__DIR__), 'added' => 1)); return true; } $this->view->addErrorMessage('NKORGINACTIVITY_MANAGER_SAVED_FAILED'); } return parent::request(); }
/** * Request-Handler * @return boolean */ public function request() { if ($this->getRequestVar('step')) { $this->forceStep = (int) $this->getRequestVar('step'); } \fpcm\classes\baseconfig::enableAsyncCronjobs(false); return parent::request(); }
/** * Request-Handler * @return bool */ public function request() { if ($this->getRequestVar('step')) { $this->forceStep = (int) $this->getRequestVar('step'); } if ($this->getRequestVar('file')) { $tmpFile = new \fpcm\model\files\tempfile('forceUpdateFile', $this->getRequestVar('file')); $tmpFile->save(); } if (!$this->forceStep) { \fpcm\classes\baseconfig::enableAsyncCronjobs(false); } return parent::request(); }
public function request() { if ($this->buttonClicked('termSave')) { $newterm = $this->getRequestVar('term'); $this->term->setSearchterm($newterm['search']); $this->term->setReplaceterm($newterm['replace']); $res = $this->term->save(); if ($res) { $this->redirect('modules/config', array('key' => \fpcm\model\abstracts\module::getModuleKeyByFolder(__DIR__), 'added' => 1)); return true; } $this->view->addErrorMessage('NKORG_TWEETENTENDER_SAVED_FAILED'); } return parent::request(); }
public function request() { $this->chapterHeadline = $this->getRequestVar('ref'); return parent::request(); }