2011-05-19 08:46:55 +00:00
|
|
|
<?php
|
|
|
|
class Application_Model_CommandesTarifs extends Zend_Db_Table_Abstract
|
|
|
|
{
|
2011-08-22 13:30:32 +00:00
|
|
|
protected $_name = 'commandes_tarifs';
|
2011-09-27 15:33:24 +00:00
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
2011-09-29 15:15:14 +00:00
|
|
|
if (empty($config) && Zend_Registry::isRegistered('configuration')){
|
|
|
|
$configuration = Zend_Registry::get('configuration');
|
|
|
|
$this->_db = Zend_Db::factory($configuration->databases->db->sdv1);
|
|
|
|
} elseif(empty($config)){
|
|
|
|
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH.'/configs/configuration.ini', 'databases');
|
|
|
|
$this->_db = Zend_Db::factory($dbConfig->db->sdv1);
|
|
|
|
}
|
2011-09-27 15:33:24 +00:00
|
|
|
}
|
|
|
|
|
2011-05-19 08:46:55 +00:00
|
|
|
}
|