示例#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::$objLyricsTable = $this->getConfigKey(new S('lyrics_table'));
     self::$objLyricsTableFId = $this->getConfigKey(new S('lyrics_table_field_id'));
     self::$objLyricsTableFSEO = $this->getConfigKey(new S('lyrics_table_field_seo'));
     self::$objLyricsTableFTitle = $this->getConfigKey(new S('lyrics_table_field_title'));
     self::$objLyricsTableFArtist = $this->getConfigKey(new S('lyrics_table_field_artist'));
     self::$objLyricsTableFAlbum = $this->getConfigKey(new S('lyrics_table_field_album'));
     self::$objLyricsTableFLyrics = $this->getConfigKey(new S('lyrics_table_field_lyrics'));
     self::$objLyricsTableFDateAdded = $this->getConfigKey(new S('lyrics_table_field_date_added'));
     self::$objItemsPerPage = new S('10');
     // 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));
     }
 }