ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilPostgresQueryUtils. More...
Public Member Functions | ||||||||||
createTable ($name, $fields, $options=array()) | ||||||||||
in ($field, $values, $negate=false, $type="") | ||||||||||
quote ($value, $type=null) | ||||||||||
concat (array $values, $allow_null=true) | ||||||||||
locate ($a_needle, $a_string, $a_start_pos=1) | ||||||||||
free (ilPDOStatement $statement) | ||||||||||
quoteIdentifier ($identifier) | ||||||||||
like ($column, $type, $value="?", $case_insensitive=true) | ||||||||||
now () | ||||||||||
lock (array $tables) | ||||||||||
unlock () | ||||||||||
createDatabase ($a_name, $a_charset="utf8", $a_collation="") | ||||||||||
groupConcat ($a_field_name, $a_seperator=",", $a_order=NULL) | ||||||||||
cast ($a_field_name, $a_dest_type) | ||||||||||
| ||||||||||
Public Member Functions inherited from ilQueryUtils | ||||||||||
__construct (ilDBInterface $ilDBInterface) | ||||||||||
ilMySQLQueryUtils constructor. More... | ||||||||||
in ($field, $values, $negate=false, $type="") | ||||||||||
quote ($value, $type=null) | ||||||||||
concat (array $values, $allow_null=true) | ||||||||||
locate ($a_needle, $a_string, $a_start_pos=1) | ||||||||||
free (ilPDOStatement $statement) | ||||||||||
quoteIdentifier ($identifier) | ||||||||||
createTable ($name, $fields, $options=array()) | ||||||||||
like ($column, $type, $value="?", $case_insensitive=true) | ||||||||||
now () | ||||||||||
lock (array $tables) | ||||||||||
unlock () | ||||||||||
createDatabase ($a_name, $a_charset="utf8", $a_collation="") | ||||||||||
groupConcat ($a_field_name, $a_seperator=",", $a_order=NULL) | ||||||||||
| ||||||||||
cast ($a_field_name, $a_dest_type) | ||||||||||
| ||||||||||
Additional Inherited Members | |
Protected Attributes inherited from ilQueryUtils | |
$db_instance | |
Class ilPostgresQueryUtils.
Definition at line 9 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::cast | ( | $a_field_name, | |
$a_dest_type | |||
) |
string | $a_field_name | |
mixed | $a_dest_type |
Implements ilQueryUtilsInterface.
Definition at line 314 of file class.ilPostgresQueryUtils.php.
References array.
ilPostgresQueryUtils::concat | ( | array | $values, |
$allow_null = true |
|||
) |
array | $values | |
bool | $allow_null |
Implements ilQueryUtilsInterface.
Definition at line 114 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::createDatabase | ( | $a_name, | |
$a_charset = "utf8" , |
|||
$a_collation = "" |
|||
) |
$a_name | ||
string | $a_charset | |
string | $a_collation |
Implements ilQueryUtilsInterface.
Definition at line 282 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::createTable | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Implements ilQueryUtilsInterface.
Definition at line 18 of file class.ilPostgresQueryUtils.php.
References $options, $query, array, and quote().
ilPostgresQueryUtils::free | ( | ilPDOStatement | $statement | ) |
\ilPDOStatement | $statement |
Implements ilQueryUtilsInterface.
Definition at line 169 of file class.ilPostgresQueryUtils.php.
References ilPDOStatement\closeCursor().
ilPostgresQueryUtils::groupConcat | ( | $a_field_name, | |
$a_seperator = "," , |
|||
$a_order = NULL |
|||
) |
string | $a_field_name | |
string | $a_seperator | |
string | $a_order |
Implements ilQueryUtilsInterface.
Definition at line 300 of file class.ilPostgresQueryUtils.php.
References quote().
ilPostgresQueryUtils::in | ( | $field, | |
$values, | |||
$negate = false , |
|||
$type = "" |
|||
) |
string | $field | |
string[] | $values | |
bool | $negate | |
string | $type |
Implements ilQueryUtilsInterface.
Definition at line 74 of file class.ilPostgresQueryUtils.php.
References quote().
ilPostgresQueryUtils::like | ( | $column, | |
$type, | |||
$value = "?" , |
|||
$case_insensitive = true |
|||
) |
$column | ||
$type | ||
string | $value | |
bool | $case_insensitive |
Implements ilQueryUtilsInterface.
Definition at line 193 of file class.ilPostgresQueryUtils.php.
References $column, array, quote(), ilDBConstants\T_CLOB, and ilDBConstants\T_TEXT.
ilPostgresQueryUtils::locate | ( | $a_needle, | |
$a_string, | |||
$a_start_pos = 1 |
|||
) |
$a_needle | ||
$a_string | ||
int | $a_start_pos |
Implements ilQueryUtilsInterface.
Definition at line 152 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::lock | ( | array | $tables | ) |
array | $tables |
Implements ilQueryUtilsInterface.
Definition at line 232 of file class.ilPostgresQueryUtils.php.
References $counter, ilDBConstants\LOCK_READ, and ilDBConstants\LOCK_WRITE.
ilPostgresQueryUtils::now | ( | ) |
Implements ilQueryUtilsInterface.
Definition at line 223 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::quote | ( | $value, | |
$type = null |
|||
) |
mixed | $value | |
null | $type |
Implements ilQueryUtilsInterface.
Definition at line 104 of file class.ilPostgresQueryUtils.php.
Referenced by createTable(), groupConcat(), in(), and like().
ilPostgresQueryUtils::quoteIdentifier | ( | $identifier | ) |
$identifier |
Implements ilQueryUtilsInterface.
Definition at line 180 of file class.ilPostgresQueryUtils.php.
ilPostgresQueryUtils::unlock | ( | ) |
Implements ilQueryUtilsInterface.
Definition at line 271 of file class.ilPostgresQueryUtils.php.