Omeka_DbDatabase manager object for Omeka While mostly a wrapper for a Zend_Db_Adapter instance, this also provides shortcuts for retrieving table objects and table names for use in SQL.
Database manager object for Omeka While mostly a wrapper for a Zend_Db_Adapter instance, this also provides shortcuts for retrieving table objects and table names for use in SQL.
Located in /application/libraries/Omeka/Db.php (line 20)
string
$prefix
= null (line 29)
The prefix that every table in the omeka database will use.
The prefix that every table in the omeka database will use. If null this is ignored
mixed
$_conn
(line 22)
array
$_tables
= array() (line 36)
All the tables that are currently managed by this database object
All the tables that are currently managed by this database object
Convenience function for when server setup disallows executing more than
Convenience function for when server setup disallows executing more than one SQL query at a time
Retrieve a table object corresponding to the model class.
Retrieve a table object corresponding to the model class. Table classes can be extended by inheriting off of Omeka_Db_Table and then calling your table ModelNameTable, i.e. ItemTable or CollectionTable, etc.
Retrieve the name of the table (including the prefix)
Retrieve the name of the table (including the prefix)
A shortcut for checking to see whether the database tables have a prefix
A shortcut for checking to see whether the database tables have a prefix
Every query ends up looking like: INSERT INTO table (field, field2, field3, . ON DUPLICATE KEY UPDATE field = ?, field2 = ?, .
Every query ends up looking like: INSERT INTO table (field, field2, field3, ...) VALUES (?, ?, ?, ...) ON DUPLICATE KEY UPDATE field = ?, field2 = ?, ... Note on portability: ON DUPLICATE KEY UPDATE is a MySQL extension. The advantage to using this is that it doesn't care whether a row exists already. Basically it combines what would be insert() and update() methods in other ORMs into a single method
Delegate to the Zend_Db_Adapter instance.
Delegate to the Zend_Db_Adapter instance. Log queries if necessary
Magic getter is a synonym for Omeka_Db::getTableName()
Magic getter is a synonym for Omeka_Db::getTableName()
Documentation generated on Thu, 15 Oct 2009 15:36:26 -0400 by phpDocumentor 1.4.2