Manage an Onpub database.
Located in /OnpubDatabase.php (line 13)
Decode a UTF8-encoded string to a latin1-encoded string.
Verify the results of a call to PDO->exec().
Used internally to verify whether or not a PDO->exec() call was successful or not. If the call returned FALSE then an exception is thrown with an error message and error code, explaining what went wrong. If the exec() call fails during a running database transaction, PDO->rollback() is called to roll back the transaction to put the database back in the state it was before the error occured; then the appropriate exception is thrown.
Verify the results of a call to PDOStatement->execute().
Used internally to verify whether or not a PDOStatement->execute() call was successful or not. If the call returned FALSE then an exception is thrown with an error message and error code, explaining what went wrong. If the execute() call fails during a running database transaction, PDOStatement->rollback() is called to roll back the transaction to put the database back in the state it was before the error occured; then the appropriate exception is thrown.
Verify the results of a call to PDO->prepare().
Used internally to verify whether or not a PDO->prepare() call was successful or not. If the call returned FALSE then an exception is thrown with an error message and error code, explaining what went wrong. If the prepare() call fails during a running database transaction, PDO->rollback() is called to roll back the transaction to put the database back in the state it was before the error occured; then the appropriate exception is thrown.
Verify the results of a call to PDO->query().
Used internally to verify whether or not a PDO->query() call was successful or not. If the call returned FALSE then an exception is thrown with an error message and error code, explaining what went wrong. If the query() call fails during a running database transaction, PDO->rollback() is called to roll back the transaction to put the database back in the state it was before the error occured; then the appropriate exception is thrown.
Verify the results of a call to PDO->beginTransaction() or PDO->commit().
Used internally to verify whether or not a PDO->beginTransaction() or a PDO->rollback() call was successful or not. If the call returned FALSE then an exception is thrown with an error message and error code, explaining what went wrong.
Connect to a database.
All the methods in this class which query the database use the database connection provided by the PDO object required by this constructor. Currently, Onpub only supports MySQL as a database for storing content. Therefore, when constructing the PDO object, only the PDO_MYSQL driver is supported as a PDO data source.
Delete the Onpub schema.
Calling this method will delete all Onpub content and schema in the PDO-connected database! Use with caution.
Install the Onpub schema.
Calling this method will install the Onpub tables in the PDO-connected database.
Gets a list of MySQL databases that the logged-in user has access to.
System database names are excluded from the list.
Documentation generated on Fri, 08 Feb 2013 04:02:20 -0500 by phpDocumentor 1.4.4