public function run()
 {
     $dataMigrationService = taoUpdate_models_classes_DataMigrationService::singleton();
     $releaseInfo = $dataMigrationService->getReleaseInfo();
     $shieldService = taoUpdate_models_classes_ShieldService::singleton();
     $exts = array_merge($releaseInfo['extensions'], $releaseInfo['old_extensions']);
     foreach ($exts as $ext) {
         $shieldService->unShield($ext) == false;
     }
 }
 public function run()
 {
     $ext = common_ext_ExtensionsManager::singleton()->getExtensionById('ltiProvider');
     if ($ext->isInstalled()) {
         common_Logger::t('Uninstall ltiProvider');
         $db = core_kernel_classes_DbWrapper::singleton();
         $sql = "DELETE from extensions where id ='ltiProvider';";
         $db->exec($sql);
         tao_helpers_File::delTree($ext->getConstant('BASE_PATH'));
         $newExt = common_ext_ExtensionsManager::singleton()->getExtensionById('taoLti');
         taoUpdate_models_classes_DataMigrationService::singleton()->installExtension($newExt);
     }
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->service = taoUpdate_models_classes_DataMigrationService::singleton();
     common_log_Dispatcher::singleton()->init(array(array('class' => 'SingleFileAppender', 'format' => '[%s] %m', 'threshold' => common_Logger::TRACE_LEVEL, 'file' => self::getTemplatePath('update.log'))));
 }