forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] 0038013: added comment on how to use update method
# Conflicts: # Services/Database/interfaces/interface.ilDBInterface.php
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of ILIAS, a powerful learning management system | ||
* published by ILIAS open source e-Learning e.V. | ||
|
@@ -18,6 +16,8 @@ | |
* | ||
*********************************************************************/ | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Interface ilDBInterface | ||
* @author Oskar Truffer <[email protected]> | ||
|
@@ -92,6 +92,8 @@ public function insert(string $table_name, array $values): int; | |
public function fetchObject(ilDBStatement $query_result): ?stdClass; | ||
|
||
/** | ||
* @description $where MUST contain existing columns only. statements like [1 => ['integer', 1]] will not work, use a full query and @see manipulate() instead in that case. | ||
* | ||
* @return int The number of rows affected by the manipulation | ||
*/ | ||
public function update(string $table_name, array $values, array $where): int; | ||
|
@@ -294,5 +296,5 @@ public function groupConcat(string $a_field_name, string $a_seperator = ",", ?st | |
|
||
public function cast(string $a_field_name, string $a_dest_type): string; | ||
|
||
public function primaryExistsByFields(string $table_name, array $fields) : bool; | ||
public function primaryExistsByFields(string $table_name, array $fields): bool; | ||
} |