/** * @param $confObj */ public function __construct($confObj) { $this->confObj = $confObj; $this->debug = $confObj->debug; // get Application params $this->availableLanguages = $this->confObj->getApplicationConfiguration('AvailableLanguages'); // get Extension params // get User parasm $this->isAdmin = $this->confObj->getUserConfigurationIsAdmin(); $this->permittedLanguages = $this->confObj->getUserConfiguration('PermittedLanguages'); $this->allocatedGroups = $this->confObj->getUserConfiguration('AllocatedGroups'); $this->selectedLanguages = $this->confObj->getUserConfiguration('SelectedLanguages'); }
/** * @param $pa * @param $fobj * @return void */ public function getLanguages($pa, $fobj) { $extjsParams = NULL; $tcaLanguages = array(); // get configuration object $this->getConfigurationObject($extjsParams); // get available languages $languages = $this->confObj->getApplicationConfiguration('AvailableLanguages'); if (is_array($languages)) { foreach ($languages as $language) { $value = array('0' => $language['LanguageName'], '1' => $language['LanguageKey']); array_push($tcaLanguages, $value); } } $pa['items'] = $tcaLanguages; }
/** * @param $confObj * @return void */ public function init($confObj) { $this->confObj = $confObj; // get Application params $this->copyDefaultLanguage = $this->confObj->getApplicationConfiguration('CopyDefaultLanguage'); $this->availableLanguages = $this->confObj->getApplicationConfiguration('AvailableLanguages'); $this->approvedExtensions = $this->confObj->getApplicationConfiguration('ApprovedExtensions'); $this->localExtensionPath = $this->confObj->getApplicationConfiguration('LocalExtensionPath'); $this->systemExtensionPath = $this->confObj->getApplicationConfiguration('SystemExtensionPath'); $this->globalExtensionPath = $this->confObj->getApplicationConfiguration('GlobalExtensionPath'); // get Extension params $this->sitePath = $this->confObj->getExtensionConfiguration('SitePath'); $this->l10nPath = $this->confObj->getExtensionConfiguration('L10nPath'); $this->loadedExtensions = $this->confObj->getExtensionConfigurationLoadedExtensions(); }
/** * @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'); }
/** * @param $extjsParams * @return null * * todo: renaming */ public function getGeneralSettingsApprovedExtensionsAdded($extjsParams) { // todo: check logic $extjsParams = array(); $approvedExtensionsArray = array(); // Get Configuration Object $this->getConfigurationObject($extjsParams); // Set Values $approvedExtensions = $this->confObj->getApplicationConfiguration('ApprovedExtensions'); // Prepare For Output if (is_array($approvedExtensions) && count($approvedExtensions) > 0) { foreach ($approvedExtensions as $approvedExtension) { array_push($approvedExtensionsArray, array('ExtensionKey' => $approvedExtension)); } } return $approvedExtensionsArray; }