ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilQueryUtils.php
Go to the documentation of this file.
1 <?php
2 require_once 'Services/Database/interfaces/interface.ilQueryUtils.php';
3 
8 abstract class ilQueryUtils implements ilQueryUtilsInterface {
9 
13  protected $db_instance;
14 
15 
21  public function __construct(ilDBInterface $ilDBInterface) {
22  $this->db_instance = $ilDBInterface;
23  }
24 
25 
33  abstract public function in($field, $values, $negate = false, $type = "");
34 
35 
41  abstract public function quote($value, $type = null);
42 
43 
49  abstract public function concat(array $values, $allow_null = true);
50 
51 
58  abstract public function locate($a_needle, $a_string, $a_start_pos = 1);
59 
60 
65  abstract public function free(ilPDOStatement $statement);
66 
67 
72  abstract public function quoteIdentifier($identifier);
73 
74 
82  abstract public function createTable($name, $fields, $options = array());
83 
84 
93  abstract public function like($column, $type, $value = "?", $case_insensitive = true);
94 
95 
99  abstract public function now();
100 
101 
106  abstract public function lock(array $tables);
107 
108 
112  abstract public function unlock();
113 
114 
121  abstract public function createDatabase($a_name, $a_charset = "utf8", $a_collation = "");
122 
123 
127  abstract public function groupConcat($a_field_name, $a_seperator = ",", $a_order = NULL);
128 
129 
133  abstract public function cast($a_field_name, $a_dest_type);
134 
135 }
createTable($name, $fields, $options=array())
__construct(ilDBInterface $ilDBInterface)
ilMySQLQueryUtils constructor.
in($field, $values, $negate=false, $type="")
Class ilPDOStatement is a Wrapper Class for PDOStatement.
quote($value, $type=null)
cast($a_field_name, $a_dest_type)
string
locate($a_needle, $a_string, $a_start_pos=1)
Interface ilDBInterface.
$column
Definition: 39dropdown.php:62
if(!is_array($argv)) $options
free(ilPDOStatement $statement)
concat(array $values, $allow_null=true)
groupConcat($a_field_name, $a_seperator=",", $a_order=NULL)
string
Create styles array
The data for the language used.
lock(array $tables)
like($column, $type, $value="?", $case_insensitive=true)
createDatabase($a_name, $a_charset="utf8", $a_collation="")
quoteIdentifier($identifier)
Interface ilQueryUtilsInterface.
Class ilQueryUtils.