Compare commits

..

3 commits

Author SHA1 Message Date
Benjamin Renard
260b7666f4
Update translations 2023-11-20 18:55:54 +01:00
Benjamin Renard
945bf76d7d
Tpl: add display_ajax_error() helper method 2023-11-20 18:55:54 +01:00
Benjamin Renard
85544a36b8
Db: add count() helper method 2023-11-20 18:32:24 +01:00

View file

@ -202,7 +202,7 @@ class Db {
* @param array|string $where WHERE clause(s) as expected by Envms\FluentPDO\Query * @param array|string $where WHERE clause(s) as expected by Envms\FluentPDO\Query
* @param array|string|null $what What to count (optional, default: "*") * @param array|string|null $what What to count (optional, default: "*")
* @param array<array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string}>|array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string} $joins Join specification as array (see apply_joins()) * @param array<array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string}>|array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string} $joins Join specification as array (see apply_joins())
* @return int|false * @return array|false
*/ */
public function count($table, $where, $what=null, $joins=null) { public function count($table, $where, $what=null, $joins=null) {
try { try {