/** * Inits debuger if debuger turned on and PHPUnit lib is available. * Performs reload of all licenses if there was a problem to load licenses because of early modules' init. * Corrects modules' status and launches install/uninstall scripts if some module was enabled/disabled through xml. */ public function debugerInit() { if (!$this->_debugerInited) { $this->tool()->debuger(); $this->tool()->platform()->reload(); if ($this->tool()->platform()->isNeedCorrection()) { $aitsysModel = new Aitoc_Aitsys_Model_Aitsys(); $aitsysModel->correction(); } $this->_debugerInited = true; } }
/** * Corrects modules' status and launches install/uninstall scripts if some module was enabled/disabled through xml. */ public function correction() { if (!$this->_correctionDone) { $this->tool()->platform()->getModules(); // load modules if ($this->tool()->platform()->isNeedCorrection()) { $aitsysModel = new Aitoc_Aitsys_Model_Aitsys(); $aitsysModel->correction(); } $this->_correctionDone = true; } }