Generic controller to handle entity listing routes.
More...
Generic controller to handle entity listing routes.
- Since
- 7.0
Definition at line 14 of file GenericContentListing.php.
◆ __invoke()
| Elgg\Controllers\GenericContentListing::__invoke |
( |
\Elgg\Request |
$request | ) |
|
|
final |
Handle a listing request.
- Parameters
-
| \Elgg\Request | $request | the Elgg request |
- Returns
- \Elgg\Http\Response
- Exceptions
-
Definition at line 30 of file GenericContentListing.php.
◆ getGroupToolOption()
| Elgg\Controllers\GenericContentListing::getGroupToolOption |
( |
| ) |
|
|
protected |
◆ getListingOptions()
| Elgg\Controllers\GenericContentListing::getListingOptions |
( |
string |
$page, |
|
|
array |
$options |
|
) |
| |
|
protected |
◆ getPageOptions()
| Elgg\Controllers\GenericContentListing::getPageOptions |
( |
string |
$page, |
|
|
array |
$options |
|
) |
| |
|
protected |
Get additional options to use when viewing a page.
- Parameters
-
| string | $page | for which page to get the options ('all', 'owner', 'group', 'friends') |
| array | $options | current page options |
- Returns
- array
- See also
- elgg_view_page()
Definition at line 109 of file GenericContentListing.php.
◆ listAll()
| Elgg\Controllers\GenericContentListing::listAll |
( |
array |
$options | ) |
|
|
protected |
All content item listing.
for the routes:
- default:<type>:<subtype>
- collection:<type>:<subtype>:all
- Parameters
-
| array | $options | listing options |
- Returns
- string
Definition at line 132 of file GenericContentListing.php.
◆ listFriends()
| Elgg\Controllers\GenericContentListing::listFriends |
( |
array |
$options | ) |
|
|
protected |
Friends content item listing.
for the route:
- collection:<type>:<subtype>:friends
- Parameters
-
| array | $options | listing options |
- Returns
- string
- Exceptions
-
Definition at line 156 of file GenericContentListing.php.
◆ listGroup()
| Elgg\Controllers\GenericContentListing::listGroup |
( |
array |
$options | ) |
|
|
protected |
Group content item listing.
for the route:
- collection:<type>:<subtype>:group
- Parameters
-
| array | $options | listing options |
- Returns
- string
- Exceptions
-
| BadRequestException | |
| GroupToolGatekeeperException | |
Definition at line 192 of file GenericContentListing.php.
◆ listOwner()
| Elgg\Controllers\GenericContentListing::listOwner |
( |
array |
$options | ) |
|
|
protected |
Owner content item listing.
for the route:
- collection:<type>:<subtype>:owner
- Parameters
-
| array | $options | listing options |
- Returns
- string
- Exceptions
-
Definition at line 232 of file GenericContentListing.php.
◆ parseRoute()
| Elgg\Controllers\GenericContentListing::parseRoute |
( |
string |
$route_name | ) |
|
|
finalprotected |
Parse the route name to usable parts.
- Parameters
-
| string | $route_name | route name |
- Returns
- array
- Exceptions
-
Definition at line 61 of file GenericContentListing.php.
◆ $page_owner
| ElggEntity Elgg\Controllers\GenericContentListing::$page_owner = null |
|
protected |
◆ $request
| Elgg Request Elgg\Controllers\GenericContentListing::$request = null |
|
protected |
◆ $route
| Elgg Router Route Elgg\Controllers\GenericContentListing::$route = null |
|
protected |
The documentation for this class was generated from the following file: