1 | <?php |
||
17 | class QueryBuilder extends CoreQueryBuilder |
||
18 | { |
||
19 | /** |
||
20 | * @var Typo3Service |
||
21 | */ |
||
22 | private $typo3Service; |
||
23 | |||
24 | /** |
||
25 | * Sets a new value for a column in a bulk update query. |
||
26 | * |
||
27 | * @param string $key The column to set. |
||
28 | * @param string $value The value, expression, placeholder, etc. |
||
29 | * @param bool $createNamedParameter Automatically create a named parameter for the value |
||
30 | * |
||
31 | * @return QueryBuilder This QueryBuilder instance. |
||
32 | */ |
||
33 | public function set(string $key, $value, bool $createNamedParameter = true): CoreQueryBuilder |
||
43 | |||
44 | /** |
||
45 | * Specifies values for an insert query indexed by column names. |
||
46 | * Replaces any previous values, if any. |
||
47 | * |
||
48 | * @param array $values The values to specify for the insert query indexed by column names. |
||
49 | * @param bool $createNamedParameters Automatically create named parameters for all values |
||
50 | * |
||
51 | * @return QueryBuilder This QueryBuilder instance. |
||
52 | */ |
||
53 | public function values(array $values, bool $createNamedParameters = true): CoreQueryBuilder |
||
62 | |||
63 | |||
64 | /** |
||
65 | * create instance of Typo3Service by lazy-loading |
||
66 | * |
||
67 | * Why we do this? |
||
68 | * Because some unittests backup the variable $GLOBALS (and so, also the variable $GLOBALS['TYPO3_DB']), which means, that this |
||
69 | * object/class will be serialized/unserialized, so the instance of Typo3Service will be null after unserialization! |
||
70 | * |
||
71 | * @return Typo3Service |
||
72 | */ |
||
73 | protected function getTypo3Service() |
||
81 | |||
82 | /** |
||
83 | * Determines the defined table name without quotation marks (`). |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | protected function getTableName() |
||
97 | } |
||
98 |