Example #1
0
 /**
  * Currently sqlite; Change this to use mySQL (or whatever).
  * @return string The PDO DSN string for the database.
  */
 private function dsn()
 {
     $dsn = paConfig::load('dsn');
     $dsn = str_replace('@gamedir', ADVENGAME_ROOT . '/assets/' . paConfig::getGame(), $dsn);
     return $dsn;
 }
 public function __construct()
 {
     $this->paPrefix = paConfig::load('prefix');
 }