Repositories
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\Repository\Repository::__construct |
( |
Db |
$zdb, |
|
|
Preferences |
$preferences, |
|
|
Login |
$login, |
|
|
?string |
$entity = null , |
|
|
?string |
$ns = null , |
|
|
string |
$prefix = '' |
|
) |
| |
Main constructor
- Parameters
-
Db | $zdb | Database instance |
Preferences | $preferences | Galette preferences |
Login | $login | Logged in instance |
| ?string | $entity Related entity class name |
| ?string | $ns Related entity namespace |
string | $prefix | Prefix (for plugins) |
◆ canOrderBy()
Galette\Repository\Repository::canOrderBy |
( |
string |
$field_name, |
|
|
?array |
$fields |
|
) |
| |
|
protected |
Is field allowed to order? it should be present in provided fields list (those that are SELECT'ed).
- Parameters
-
string | $field_name | Field name to order by |
| ?array<string> | $fields SELECTE'ed fields |
- Returns
- boolean
◆ getFilters()
Galette\Repository\Repository::getFilters |
( |
| ) |
|
|
protected |
Get filters
- Returns
- Pagination
◆ getList()
Galette\Repository\Repository::getList |
( |
| ) |
|
|
abstract |
◆ installInit()
Galette\Repository\Repository::installInit |
( |
bool |
$check_first = true | ) |
|
|
abstract |
◆ loadDefaults()
Galette\Repository\Repository::loadDefaults |
( |
| ) |
|
|
protected |
◆ setFilters()
Galette\Repository\Repository::setFilters |
( |
Pagination |
$filters | ) |
|
|
protected |
Set filters
- Parameters
-
Pagination | $filters | Filters |
- Returns
- self
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Repository/Repository.php