ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQueryUtils Class Reference

Class ilQueryUtils. More...

+ Inheritance diagram for ilQueryUtils:
+ Collaboration diagram for ilQueryUtils:

Public Member Functions

 __construct (protected \ilDBInterface $db_instance)
 ilMySQLQueryUtils constructor. More...
 
 in (string $field, array $values, bool $negate=false, string $type="")
 
 quote ($value, ?string $type=null)
 
 concat (array $values, bool $allow_null=true)
 
 locate (string $a_needle, string $a_string, int $a_start_pos=1)
 
 free (ilPDOStatement $statement)
 
 quoteIdentifier (string $identifier)
 
 createTable (string $name, array $fields, array $options=[])
 
 like (string $column, string $type, string $value="?", bool $case_insensitive=true)
 
 now ()
 
 lock (array $tables)
 
 unlock ()
 
 createDatabase (string $name, string $charset="utf8", string $collation="")
 
 groupConcat (string $a_field_name, string $a_seperator=",", ?string $a_order=null)
 
 cast (string $a_field_name, $a_dest_type)
 
Parameters
mixed$a_dest_type
More...
 

Detailed Description

Class ilQueryUtils.

Definition at line 24 of file class.ilQueryUtils.php.

Constructor & Destructor Documentation

◆ __construct()

ilQueryUtils::__construct ( protected \ilDBInterface  $db_instance)

ilMySQLQueryUtils constructor.

Definition at line 29 of file class.ilQueryUtils.php.

References cast(), concat(), createDatabase(), createTable(), free(), groupConcat(), in(), like(), locate(), lock(), now(), null, quote(), quoteIdentifier(), and unlock().

30  {
31  }
+ Here is the call graph for this function:

Member Function Documentation

◆ cast()

ilQueryUtils::cast ( string  $a_field_name,
  $a_dest_type 
)
abstract

Parameters
mixed$a_dest_type

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ concat()

ilQueryUtils::concat ( array  $values,
bool  $allow_null = true 
)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ createDatabase()

ilQueryUtils::createDatabase ( string  $name,
string  $charset = "utf8",
string  $collation = "" 
)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ createTable()

ilQueryUtils::createTable ( string  $name,
array  $fields,
array  $options = [] 
)
abstract
Exceptions

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ free()

ilQueryUtils::free ( ilPDOStatement  $statement)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ groupConcat()

ilQueryUtils::groupConcat ( string  $a_field_name,
string  $a_seperator = ",",
?string  $a_order = null 
)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ in()

ilQueryUtils::in ( string  $field,
array  $values,
bool  $negate = false,
string  $type = "" 
)
abstract
Parameters
string[]$values

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ like()

ilQueryUtils::like ( string  $column,
string  $type,
string  $value = "?",
bool  $case_insensitive = true 
)
abstract
Exceptions

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ locate()

ilQueryUtils::locate ( string  $a_needle,
string  $a_string,
int  $a_start_pos = 1 
)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ lock()

ilQueryUtils::lock ( array  $tables)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ now()

ilQueryUtils::now ( )
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ quote()

ilQueryUtils::quote (   $value,
?string  $type = null 
)
abstract
Parameters
mixed$value

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ quoteIdentifier()

ilQueryUtils::quoteIdentifier ( string  $identifier)
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ unlock()

ilQueryUtils::unlock ( )
abstract

Implements ilQueryUtilsInterface.

Referenced by __construct().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: