예제 #1
0
파일: DBTest.php 프로젝트: how/openpasl
 private function testMDB2Instantiation()
 {
     // Test new instance factory for a portable MDB2 driver
     $dbDriver = \PASL\DB::factory($this->strMyDsn, false, true);
     $this->assertIsA($dbDriver, 'MDB2_Driver_common');
     $this->assertIsA($dbDriver, 'MDB2_Driver_mysql');
     // Test new instance factory for a portable MDB2 driver
     $dbDriver = PASL_DB::singleton($this->strMyDsn, false, true);
     $this->assertIsA($dbDriver, 'MDB2_Driver_common');
     $this->assertIsA($dbDriver, 'MDB2_Driver_mysql');
 }
예제 #2
0
파일: RBAC.php 프로젝트: how/openpasl
 public function init($dsn)
 {
     ORM::registerDB('pasl_rbac', DB::factory($dsn));
 }