database_helper.php
Table of Contents
Functions
- dbExecuteAssoc() : bool|CDbDataReader
- dbRandom() : string
- Return the database-specific random function to use in ORDER BY sql statements
- dbSelectTablesLike() : string
- Return a sql statement for finding LIKE named tables Be aware that you have to escape underscore chars by using a backslash otherwise you might get table names returned you don't want
- dbGetTablesLike() : array<string|int, mixed>
- Gets the table names. Do not prefix.
Functions
dbExecuteAssoc()
dbExecuteAssoc(string $sql[, array<string|int, mixed>|bool $inputarr = false ][, bool $silent = true ]) : bool|CDbDataReader
Parameters
- $sql : string
- $inputarr : array<string|int, mixed>|bool = false
- $silent : bool = true
Tags
Return values
bool|CDbDataReaderdbRandom()
Return the database-specific random function to use in ORDER BY sql statements
dbRandom() : string
Return values
stringdbSelectTablesLike()
Return a sql statement for finding LIKE named tables Be aware that you have to escape underscore chars by using a backslash otherwise you might get table names returned you don't want
dbSelectTablesLike(mixed $table) : string
Parameters
- $table : mixed
Return values
stringdbGetTablesLike()
Gets the table names. Do not prefix.
dbGetTablesLike(string $table) : array<string|int, mixed>
Parameters
- $table : string
-
String to match
Tags
Return values
array<string|int, mixed> —Array of matched table names