Skip to content

Commit

Permalink
[FIX] 0038013: added comment on how to use update method
Browse files Browse the repository at this point in the history
# Conflicts:
#	Services/Database/interfaces/interface.ilDBInterface.php
  • Loading branch information
chfsx committed Oct 16, 2023
1 parent 3ca3fb2 commit 40185b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Services/Database/interfaces/interface.ilDBInterface.php
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.
Expand All @@ -18,6 +16,8 @@
*
*********************************************************************/

declare(strict_types=1);

/**
* Interface ilDBInterface
* @author Oskar Truffer <[email protected]>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

0 comments on commit 40185b9

Please sign in to comment.