Database Administration model. This model reads data about the database structure both from the file system (configs/db*) and the database and shows a combination of the actual database structure and required database structure.
package | Gems |
---|---|
subpackage | Model |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.0 |
__construct(\Zend_Db_Adapter_Abstract $db, array $directories)
\Zend_Db_Adapter_Abstract
array
directory => name | \Zend_Db_Adaptor_Abstract | array(['path' =>], 'name' =>, 'db' =>,)
getFileEncoding() : string
string
loadTable(string $tableName) : array
string
array
runScript(array $data, boolean $includeResultSets = false
) : string
$data is an array with the following keys: script The sql statement to be executed name The name of the table, used in messages type Type of db element (table or view), used in messages
array
boolean
string
setFileEncoding(string $encoding) : \Gems_Model_DbaModel
string
\Gems_Model_DbaModel
(continuation pattern)_loadAllTraversable() : \Traversable
\Traversable
Return an iterator over or an array of all the rows in this object_saveAllTraversable(array $data) : void
In the latter case this class will use _loadAllTraversable() and remove / add the data to the data in the delete() / save() functions and pass that data on to this function.
array
An array containing all the data that should be in this object
_(string $messageId, string|\Zend_Locale $locale = null
) : string
string
Translation string
string
\Zend_Locale
(optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string
_getGroupName($name)
_getOrder($name)
_getType($name)
$_saveable : boolean
true
$defaultDb : \Zend_Db_Adapter_Abstract
$directories : array
$file_encoding : string
$translate : \Zend_Translate_Adapter
DEFAULT_ORDER = 1000
STATE_CREATED = 1
STATE_DEFINED = 2
STATE_UNKNOWN = 3