示例#1
0
 /** @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
 /** @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);
 }