Свойство | Тип | Описание | |
---|---|---|---|
$adapter | null | Zend_Db_Adapter_Abstract | ||
$config | Zend_Config |
Метод | Описание | |
---|---|---|
__construct ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : void | ||
dump ( string $filename ) : boolean | Dump database to file | |
getAdapter ( ) : null | Zend_Db_Adapter_Abstract | ||
getConfig ( ) : Zend_Config | ||
import ( string $filename ) : boolean | Import a SQL file | |
reconnect ( ) : DbPatch_Core_Db | Reconnect to the database, this will create a new adapter instance. |
Метод | Описание | |
---|---|---|
enableOldConfigCompatibility ( ) : DbPatch_Core_Db | This method provides backward compatibility for the 'bin_dir' configuration option. it could be removed in future versions. using bin_dir only is not sufficient because it limits the user to mysql/mysqldump. it's also not possible to use bin_dir and pass a Zend_Db_Adapter instance as configuration value. | |
getCliCommand ( string $command, string $filename ) : string |
public __construct ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : void | ||
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | |
Результат | void |
protected enableOldConfigCompatibility ( ) : DbPatch_Core_Db | ||
Результат | DbPatch_Core_Db |
public getAdapter ( ) : null | Zend_Db_Adapter_Abstract | ||
Результат | null | Zend_Db_Adapter_Abstract |
public reconnect ( ) : DbPatch_Core_Db | ||
Результат | DbPatch_Core_Db |
protected null|Zend_Db_Adapter_Abstract $adapter | ||
Результат | null | Zend_Db_Adapter_Abstract |