コード例 #1
0
ファイル: Module.php プロジェクト: onysko/php_activerecord
 /** @see \samson\core\ExternalModule::init() */
 public function init(array $params = array())
 {
     parent::init($params);
     // Set table prefix
     dbMySQLConnector::$prefix = $this->prefix;
     db()->connect($this->name, $this->login, $this->pwd, $this->host, $this->port);
     //[PHPCOMPRESSOR(remove,start)]
     // Generate table relations
     $this->relations();
     //[PHPCOMPRESSOR(remove,end)]
 }
コード例 #2
0
ファイル: Module.php プロジェクト: samsonos/php_activerecord
 /** @see \samson\core\ExternalModule::init() */
 public function init(array $params = array())
 {
     parent::init($params);
     // Set table prefix
     dbMySQLConnector::$prefix = $this->prefix;
     //db()->connect($this->name, $this->login, $this->pwd, $this->host, $this->port);
 }