コード例 #1
0
 /**
  * Save changes to plugin settings.
  */
 function saveSettings($args, &$request)
 {
     $this->validate();
     $plugin =& $this->getPlugin();
     $plugin->import('ZendSearchSettingsForm');
     $zendSearchSettingsForm = new ZendSearchSettingsForm(ZEND_SEARCH_PLUGIN_NAME);
     $zendSearchSettingsForm->initData();
     $zendSearchSettingsForm->readInputData();
     if ($zendSearchSettingsForm->validate()) {
         $zendSearchSettingsForm->execute();
         $request->redirect(null, 'index');
     } else {
         $this->setupTemplate($request, true);
         $zendSearchSettingsForm->display();
     }
 }
コード例 #2
0
 /**
  * Save changes to plugin settings.
  */
 function saveSettings()
 {
     $this->validate();
     $plugin =& $this->getPlugin();
     $plugin->import('ZendSearchSettingsForm');
     $zendSearchSettingsForm = new ZendSearchSettingsForm();
     $zendSearchSettingsForm->initData();
     $zendSearchSettingsForm->readInputData();
     if ($zendSearchSettingsForm->validate()) {
         $zendSearchSettingsForm->execute();
         Request::redirect(null, 'index');
     } else {
         $this->setupTemplate(true);
         $zendSearchSettingsForm->display();
     }
 }