Example #1
0
 /**
  * @param  $confObj
  */
 public function __construct($confObj)
 {
     $this->confObj = $confObj;
     $this->database = $this->confObj->getDatabase();
     $this->debug = $confObj->debug;
     // Get Current TableId
     $this->currentTableId = $this->database->getCurrentTableId();
     // get User params
     $this->columnsConfiguration = $this->confObj->getUserConfigurationColumns();
     $this->showColumnLabel = $this->columnsConfiguration['ShowColumnLabel'];
     $this->showColumnDefault = $this->columnsConfiguration['ShowColumnDefault'];
     $this->isAdmin = $this->confObj->getUserConfigurationIsAdmin();
     $this->permittedExtensions = $this->confObj->getUserConfiguration('PermittedExtensions');
     // extjs params
     $this->searchString = $this->confObj->getExtjsConfiguration('SearchString');
     $this->extensionId = $this->confObj->getExtjsConfiguration('ExtensionId');
     $this->Dir = $this->confObj->getExtjsConfiguration('dir');
     $this->Sort = $this->confObj->getExtjsConfiguration('sort');
     $this->listViewStart = $this->confObj->getExtjsConfigurationListViewStart();
     $this->listViewLimit = $this->confObj->getExtjsConfigurationListViewLimit();
     $this->translationId = $this->confObj->getExtjsConfiguration('TranslationId');
     $this->translationValue = $this->confObj->getExtjsConfiguration('TranslationValue');
     // get language object
     $this->getLanguageObject();
     // get available languages
     $this->languages = $this->langObj->getLanguages();
 }
Example #2
0
 /**
  * @return bool
  */
 public function execute()
 {
     $this->init();
     // Get Current TableId & Negate
     $this->currentTableId = $this->database->getCurrentTableId() ? 0 : 1;
     // Indexing Extensions
     $this->indexingExtensions();
     // Indexing Files
     $this->indexingFiles();
     // Indexing Labels
     $this->indexingLabels();
     // Indexing Translations
     $this->indexingTranslations();
     // Switch CurrentTableId
     $this->database->setCurrentTableId($this->currentTableId);
     // Add Scheduler Check To Localconf & Mark Configuration Changes As 'OK'
     $this->confObj->setSchedulerCheckAndChangedConfiguration();
     return TRUE;
 }
Example #3
0
 /**
  * @param  $confObj
  */
 public function __construct($confObj)
 {
     $this->confObj = $confObj;
     $this->database = $this->confObj->getDatabase();
     $this->debug = $confObj->debug;
     // Get Current TableId
     $this->currentTableId = $this->database->getCurrentTableId();
     // get Application params
     $this->showLocalExtensions = $this->confObj->getApplicationConfiguration('ShowLocalExtensions');
     $this->showSystemExtensions = $this->confObj->getApplicationConfiguration('ShowSystemExtensions');
     $this->showGlobalExtensions = $this->confObj->getApplicationConfiguration('ShowGlobalExtensions');
     $this->approvedExtensions = $this->confObj->getApplicationConfiguration('ApprovedExtensions');
     $this->showOnlyLoadedExtensions = $this->confObj->getApplicationConfiguration('ShowOnlyLoadedExtensions');
     // get User params
     $this->isAdmin = $this->confObj->getUserConfigurationIsAdmin();
     $this->permittedExtensions = $this->confObj->getUserConfiguration('PermittedExtensions');
 }