V_CACHE
V_CACHE
Defines a parameter as "whether to cache"
MySQL database manager
$cache : \Alo\Cache\AbstractCache
The cache object in use
__construct(string $ip = ALO_MYSQL_SERVER, integer $port = ALO_MYSQL_PORT, string $user = ALO_MYSQL_USER, string $pw = ALO_MYSQL_PW, string $db = ALO_MYSQL_DATABASE, string $cache = ALO_MYSQL_CACHE, array $options = null)
Instantiates the database connection
string | $ip | The IP address to use |
integer | $port | The port to use |
string | $user | The username |
string | $pw | The password |
string | $db | The database to use |
string | $cache | Which cache interface to use |
array | $options | Connection options |
beginTransaction() : \Alo\Db\AbstractDb
Begins a transaction
rollBack() : \Alo\Db\AbstractDb
Rolls back a transaction
commit() : \Alo\Db\AbstractDb
Commits a transaction
prepQuery(string $sql, array $params = null, array $settings = array()) : array|boolean
Executes a prepared query and returns the results
string | $sql | The SQL code |
array | $params | Bound parameters |
array | $settings | Optional settings |
Result array on SELECT queries, TRUE/FALSE for others