Database access
We provide a database class for accessing the database. You can reach it over DataBase::Current(). The connection will be established automaticly, so you don't have to connect or disconnect.
To avoid name conflicts, you have to write {'dbprefix'} before each table name. It will be replaces with the prefix (defualt cl_).
The database class provides the following functions:
- ReadField: Reads a single database field
- ReadRow: Returns a row as an object
- ReadRows: Returns sevarls rows as an array (of object)
- Execute: Executes a sql query
- EscapeString: Mask a string for interaction with the database.