ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilQueryUtils Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct (ilDBInterface $ilDBInterface)
 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...
 

Protected Attributes

ilDBInterface $db_instance
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilQueryUtils

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

Constructor & Destructor Documentation

◆ __construct()

ilQueryUtils::__construct ( ilDBInterface  $ilDBInterface)

ilMySQLQueryUtils constructor.

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

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

32  {
33  $this->db_instance = $ilDBInterface;
34  }
+ 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:

Field Documentation

◆ $db_instance

ilDBInterface ilQueryUtils::$db_instance
protected

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


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