Example #1
0
 /**
  * @return void
  */
 private function initConfiguration()
 {
     if (!is_object($this->confObj) && !$this->confObj instanceof Configuration) {
         $this->confObj = GeneralUtility::makeInstance('Snowflake\\Snowbabel\\Service\\Configuration', array());
         $this->database = $this->confObj->getDatabase();
     }
 }
Example #2
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 #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');
 }