Encapsulates databse functions.
This class encapsulates all of the functions for connecting to the database.
Located in /DataBaseConnector.class.php (line 10)
Gets or sets the database name.
Gets or sets the database host. Default is localhost.
Gets the raw text of the last query performed.
If set, an error log will be written to this file. Use a full file path.
Gets or sets the database password.
Gets or sets whether or not to automaticllay update the Modified and Created fields in the table (must be those exact names).
Gets or sets the database username.
Constructor for the class.
Escapes the value to be placed in a field. This helps prevent problems with quotes, and mitigates SQL injection attacks.
Returns the number of rows affected by the previous query
Inserts a record into the database. Returns the insert auto-incremented ID on success, false on failure. Unless UpdateTimestamps is set to false, fields will automatically be added for Modified and Created.
Runs a raw query on the database that does not expect any return. Returns the result of that query, which may be a boolean for failure or an object for success of some queries.
Performs an Update query on the database. Returns true on success, false on failure.
Runs a Select query on the database. Returns an associative array of rows on success, false on failure. This will also loop through all of the results and clean the data (stripslashes).
Tests to make sure the connection to the database is open, and if not, attempts to re-open the connection.
Performs an Update query on the database. Returns success or failure.
Documentation generated on Wed, 26 Jan 2011 15:24:43 -0700 by phpDocumentor 1.4.3