public function executeExecuteSqlStatement(sfWebRequest $request) { global $CFG; $this->checkAuthorization(); $this->forward404Unless($request->isMethod(sfRequest::POST)); $form = $request->getPostParameters(); if ($form['schema'] == '1' || $form['schema'] == '2') { if ($form['schema'] == '1') { $schemaList = Doctrine::getTable('GcrEschool')->findAll(); } else { $schemaList = Doctrine::getTable('GcrInstitution')->findAll(); } } else { if ($app = GcrInstitutionTable::getApp($form['schema'])) { $schemaList = array($app); } } $admin_operation = new GcrAdminOperation($schemaList); $admin_operation->executeSqlStatement($form['sqlStatementStart'], $form['sqlStatementEnd']); $_SESSION['adminEschoolActionMessage'] = $admin_operation->getMessage(); $this->redirect($CFG->current_app->getUrl() . '/admin/eschool'); }
public function startProcess() { $admin_operation = new GcrAdminOperation($this->apps); $admin_operation->resetMdlRoles(); $this->process->delete(); }
public function startProcess() { $admin_operation = new GcrAdminOperation($this->apps); $admin_operation->purgeCaches(); $this->process->delete(); }
public function startProcess() { $admin_operation = new GcrAdminOperation($this->apps); $admin_operation->updateMdlIndexing(); $this->process->delete(); }
public function startProcess() { $admin_operation = new GcrAdminOperation($this->apps); $admin_operation->mnetReplacement($this->process->getId()); $this->process->delete(); }