LimeSurvey API - Master branch

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
throws
Exception
deprecated

Do not use anymore. If you see this replace it with a proper ActiveRecord Model query

Return values
bool|CDbDataReader

dbRandom()

Return the database-specific random function to use in ORDER BY sql statements

dbRandom() : string
Return values
string

dbSelectTablesLike()

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
string

dbGetTablesLike()

Gets the table names. Do not prefix.

dbGetTablesLike(string $table) : array<string|int, mixed>
Parameters
$table : string

String to match

Tags
uses
dbSelectTablesLike()

To get the tables like sql query

Return values
array<string|int, mixed>

Array of matched table names


        
On this page

Search results