ILIAS  release_8 Revision v8.24
class.ilQueryUtils.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
24abstract class ilQueryUtils implements ilQueryUtilsInterface
25{
26 protected \ilDBInterface $db_instance;
27
31 public function __construct(ilDBInterface $ilDBInterface)
32 {
33 $this->db_instance = $ilDBInterface;
34 }
35
39 abstract public function in(string $field, array $values, bool $negate = false, string $type = ""): string;
40
44 abstract public function quote($value, ?string $type = null): string;
45
46 abstract public function concat(array $values, bool $allow_null = true): string;
47
48 abstract public function locate(string $a_needle, string $a_string, int $a_start_pos = 1): string;
49
50 abstract public function free(ilPDOStatement $statement): bool;
51
52 abstract public function quoteIdentifier(string $identifier): string;
53
57 abstract public function createTable(string $name, array $fields, array $options = []): string;
58
62 abstract public function like(
63 string $column,
64 string $type,
65 string $value = "?",
66 bool $case_insensitive = true
67 ): string;
68
69 abstract public function now(): string;
70
71 abstract public function lock(array $tables): string;
72
73 abstract public function unlock(): string;
74
75 abstract public function createDatabase(string $name, string $charset = "utf8", string $collation = ""): string;
76
77 abstract public function groupConcat(string $a_field_name, string $a_seperator = ",", string $a_order = null): string;
78
82 abstract public function cast(string $a_field_name, $a_dest_type): string;
83}
Class ilPDOStatement is a Wrapper Class for PDOStatement.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
free(ilPDOStatement $statement)
__construct(ilDBInterface $ilDBInterface)
ilMySQLQueryUtils constructor.
createDatabase(string $name, string $charset="utf8", string $collation="")
ilDBInterface $db_instance
lock(array $tables)
like(string $column, string $type, string $value="?", bool $case_insensitive=true)
concat(array $values, bool $allow_null=true)
quoteIdentifier(string $identifier)
locate(string $a_needle, string $a_string, int $a_start_pos=1)
createTable(string $name, array $fields, array $options=[])
in(string $field, array $values, bool $negate=false, string $type="")
cast(string $a_field_name, $a_dest_type)
quote($value, ?string $type=null)
groupConcat(string $a_field_name, string $a_seperator=",", string $a_order=null)
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($format !==null) $name
Definition: metadata.php:247
$type