mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Fetch a given number of posts
This commit is contained in:
parent
d37f3de3e6
commit
10f7280bbc
3 changed files with 18 additions and 12 deletions
|
@ -767,13 +767,15 @@ class DBA
|
|||
/**
|
||||
* Fills an array with data from a query
|
||||
*
|
||||
* @param object $stmt statement object
|
||||
* @param bool $do_close
|
||||
* @param object $stmt statement object
|
||||
* @param bool $do_close Close database connection after last row
|
||||
* @param int $count maximum number of rows to be fetched
|
||||
*
|
||||
* @return array Data array
|
||||
*/
|
||||
public static function toArray($stmt, $do_close = true)
|
||||
public static function toArray($stmt, $do_close = true, int $count = 0)
|
||||
{
|
||||
return DI::dba()->toArray($stmt, $do_close);
|
||||
return DI::dba()->toArray($stmt, $do_close, $count);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue