mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Fix base list doc desc
This commit is contained in:
parent
75bbd1b47a
commit
ef45001cec
1 changed files with 10 additions and 3 deletions
|
|
@ -24,7 +24,14 @@ class BaseList extends Model
|
|||
* @param bool $paging
|
||||
* @param bool $public
|
||||
*/
|
||||
public function __construct(string $name, string $type, string $key, string $model, bool $paging = true, bool $public = true)
|
||||
public function __construct(
|
||||
string $name,
|
||||
string $type,
|
||||
string $key,
|
||||
string $model,
|
||||
bool $paging = true,
|
||||
bool $public = true
|
||||
)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
|
|
@ -40,9 +47,9 @@ class BaseList extends Model
|
|||
];
|
||||
|
||||
if (\in_array($name, $namesWithCap)) {
|
||||
$description = 'Total number of ' . $key . ' rows that matched your query used as reference for offset pagination. When the `total` number of ' . $key . ' rows available is greater than 5000, total returned will be capped at 5000, and cursor pagination should be used. Read more about [pagination](https://appwrite.io/docs/pagination).';
|
||||
$description = 'Total number of ' . $key . ' that matched your query used as reference for offset pagination. When the `total` number of ' . $key . ' rows available is greater than 5000, total returned will be capped at 5000, and cursor pagination should be used. Read more about [pagination](https://appwrite.io/docs/pagination).';
|
||||
} else {
|
||||
$description = 'Total number of ' . $key . ' rows that matched your query.';
|
||||
$description = 'Total number of ' . $key . ' that matched your query.';
|
||||
}
|
||||
|
||||
$this->addRule('total', [
|
||||
|
|
|
|||
Loading…
Reference in a new issue