DbPatch_Core_Config::getConfig PHP Метод

getConfig() публичный Метод

public getConfig ( ) : null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml
Результат null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml
    public function getConfig()
    {
        return $this->config;
    }

Usage Example

Пример #1
0
 public function testDb()
 {
     $filename = 'docs/dbpatch.ini';
     $config = new DbPatch_Core_Config($filename);
     $db = new DbPatch_Core_Db($config->getConfig());
     $this->assertTrue(is_object($db));
     $this->assertTrue(is_object($db->getAdapter()));
     $this->assertTrue($db->getAdapter() instanceof Zend_Db_Adapter_Abstract);
 }
All Usage Examples Of DbPatch_Core_Config::getConfig