Esempio n. 1
0
 /**
  * Driver name getter
  *
  * @return string 	- driver name
  */
 protected function getDriverName()
 {
     // check if such driver exists
     $sDriverPath = $this->oLithium->findFile(ucfirst($this->aConfig['type']), 'Driver');
     if ($sDriverPath === false) {
         throw new Lithium_Exception_Database('database.error_driver_not_found');
     }
     return 'Driver_' . ucfirst($this->aConfig['type']);
 }