public function executeUpdateMdlConfig(sfWebRequest $request)
 {
     global $CFG;
     $this->checkAuthorization();
     $this->forward404Unless($request->isMethod(sfRequest::POST));
     $form = $request->getPostParameters();
     if (substr($form['config'], 0, 1) == '#') {
         $form['config'] = substr($form['config'], 1);
         $table_name = 'config_plugins';
     } else {
         $table_name = 'config';
     }
     if ($form['eschool'] == '1') {
         $eschools = Doctrine::getTable('GcrEschool')->findAll();
     } else {
         if ($eschool = GcrEschoolTable::getEschool($form['eschool'])) {
             $eschools = array($eschool);
         }
     }
     $admin_operation = new GcrAdminOperation($eschools);
     $admin_operation->updateMdlConfig($table_name, $form['config'], $form['newConfigValue']);
     $_SESSION['adminEschoolActionMessage'] = $admin_operation->getMessage();
     $this->redirect($CFG->current_app->getUrl() . '/admin/eschool');
 }