function __construct(Connection $db)
 {
     parent::__construct($db);
 }
示例#2
0
 /**
  * this is a legacy compatibility shim to make the legacy database available
  *
  * @param Connection $db reference to the {@link Connection} object
  */
 public function __construct(Connection $db)
 {
     $this->db = XoopsDatabaseFactory::getDatabaseConnection();
     // get legacy connection
     parent::__construct($db);
 }