Example #1
0
 public function __construct()
 {
     // Construct any possible parent;
     parent::__construct();
     // Do the tie ...
     $this->tieInCommonConfiguration();
     // Set the proper configuration options, from the config file;
     self::$objFaqTable = $this->getConfigKey(new S('faq_table'));
     self::$objFaqTableFId = $this->getConfigKey(new S('faq_table_field_id'));
     self::$objFaqTableFQuestion = $this->getConfigKey(new S('faq_table_field_question'));
     self::$objFaqTableFSEO = $this->getConfigKey(new S('faq_table_field_seo'));
     self::$objFaqTableFAnswer = $this->getConfigKey(new S('faq_table_field_answer'));
     // Load'em defaults ... ATH, STG and others ...
     $this->ATH = MOD::activateModule(new FilePath('mod/authentication'), new B(TRUE));
     $this->STG = MOD::activateModule(new FilePath('mod/settings'), new B(TRUE));
     // DB: Auto-CREATE:
     $objQueryDB = new FileContent($this->getPathToModule()->toRelativePath() . _S . CFG_DIR . _S . __CLASS__ . SCH_EXTENSION);
     // Make a FOREACH on each ...
     foreach (_S($objQueryDB->toString())->fromStringToArray(RA_SCHEMA_HASH_TAG) as $k => $v) {
         // Make'em ...
         $this->_Q(_S($v));
     }
 }