Database connection / query management object. operates as a singleton collection, so an instance of a connection to a given database can be invoked from anywhere in the dotAdmin codebase.
The default database connection $this->obj_db exists in all controllers, and the majority of supporting objects.
Public static method of the InvDB singleton. Attempts to make a connection using the parameters specified and returns a database connection object, or returns false on failure.
Public static method of the InvDB singleton object used to get an instance of a database connection object anywhere in the code. $this->inv_db exists in most contollers, so this would normally be used to either obtain an instance of the default database in a supporting class, or for getting a connetion to a different database.
Fetch a result from the array of results from the last query, then move the pointer one to the next result.
Returns an array containing the entire result set from the last executed query.
Get a file object of type $type from the database. For example: getFileModel('document') would return a document file object. Returns false on fail.
Get a list object of type $type from the database. For example: getListModel('document') would return a document list object. Returns false on fail.
Exectue a prepared statement consisting of $query interposed with $params. Results will then become a property of the database object accesible by InvDB::fetch() and InvDB::fetchAll().
Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: firstname.lastname@example.org