Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 506
Working with the database | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.

Working with the database

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/ on line 291.

The database is abstracted into a pair of classes - miDBUtilImpl and miStaticDBUtil. The miDBUtilImpl has a number of methods for accessing the database and performing queries.
The miStaticDBUtil implements the proxy design pattern by duplicating all methods of miDBUtilImpl. There is no need to instantiate the miDBUtilImpl object, as it will be created implicitly by miStaticDBUtil.

By default database objects are working with the database configuration defined in the file.

Here is an example usage:

::execQuery('UPDATE Example SET ExampleColumn = 1');