*/ /** * Klasa stLukasBackendActions * * @package stLukasPlugin * @subpackage actions */ class stLukasBackendActions extends stActions { /** * Wyświetla konfigurację modułu */ public function executeIndex() { $this->webRequest = new stWebRequest(); $context = $this->getContext(); $this->config = stConfig::getInstance($context); if ($this->getRequest()->getMethod() == sfRequest::POST) { $this->config->setFromRequest('config'); $this->config->save(); $this->setFlash('notice', $context->getI18N()->__('Twoje zmiany zostały zapisane', null, 'stAdminGeneratorPlugin')); } $this->config->load(); } public function validateIndex() { if ($this->getRequest()->getMethod() == sfRequest::POST) { stAuthUsersListener::checkModificationCredentials($this, $this->getRequest(), $this->getModuleName()); } return true; } /** * Akcja w przypadku błędu w uzupełnianiu pó */ public function handleErrorIndex() { $this->webRequest = new stWebRequest(); $context = $this->getContext(); $this->config = stConfig::getInstance($context); $this->labels = array('config{param_profile}' => $context->getI18n()->__('Identyfikator')); return sfView::SUCCESS; } }