mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Restructured "manage" functionality, added count parameters
This commit is contained in:
parent
6973f90b8b
commit
8237d35a87
3 changed files with 51 additions and 76 deletions
|
@ -449,6 +449,7 @@ class DBA extends BaseObject
|
|||
*
|
||||
* @param string|array $table Table name or array [schema => table]
|
||||
* @param array $condition array of fields for condition
|
||||
* @param array $params Array of several parameters
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
|
@ -462,9 +463,9 @@ class DBA extends BaseObject
|
|||
* $count = DBA::count($table, $condition);
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function count($table, array $condition = [])
|
||||
public static function count($table, array $condition = [], array $params = [])
|
||||
{
|
||||
return self::getClass(Database::class)->count($table, $condition);
|
||||
return self::getClass(Database::class)->count($table, $condition, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue