/** * @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(); }
/** * @param $extjsParams * @return array */ public function getLanguageSelection($extjsParams) { // get configuration object $this->getConfigurationObject($extjsParams); // get language object $this->getLanguageObject(); // get available languages $languages = $this->langObj->getLanguages(); return $languages; }