Generic base controller for content listing and content view/edit/add.
More...
Generic base controller for content listing and content view/edit/add.
- Since
- 7.1
Definition at line 14 of file GenericContent.php.
◆ __invoke()
| Elgg\Controllers\GenericContent::__invoke |
( |
\Elgg\Request |
$request | ) |
|
|
final |
Handle a request.
- Parameters
-
| \Elgg\Request | $request | the Elgg request |
- Returns
- Response
- Exceptions
-
Definition at line 30 of file GenericContent.php.
◆ assertValidRoute()
| Elgg\Controllers\GenericContent::assertValidRoute |
( |
| ) |
|
|
abstractprotected |
◆ getEntitySubtype()
| Elgg\Controllers\GenericContent::getEntitySubtype |
( |
| ) |
|
|
protected |
Get the entity subtype from the route name.
eq. 'collection:object:blog:all' => 'blog' eq. 'view:object:blog' => 'blog'
- Returns
- string
- Exceptions
-
Definition at line 116 of file GenericContent.php.
◆ getEntityType()
| Elgg\Controllers\GenericContent::getEntityType |
( |
| ) |
|
|
protected |
Get the entity type from the route name.
eq. 'collection:object:blog:all' => 'object' eq. 'view:object:blog' => 'object'
- Returns
- string
- Exceptions
-
Definition at line 103 of file GenericContent.php.
◆ getPage()
| Elgg\Controllers\GenericContent::getPage |
( |
| ) |
|
|
abstractprotected |
◆ getPageOptions()
| Elgg\Controllers\GenericContent::getPageOptions |
( |
string |
$page, |
|
|
array |
$options |
|
) |
| |
|
abstractprotected |
◆ getRouteParts()
| Elgg\Controllers\GenericContent::getRouteParts |
( |
| ) |
|
|
finalprotected |
Parse the route name to usable parts.
- Returns
- array
- Exceptions
-
Definition at line 75 of file GenericContent.php.
◆ handleRequest()
| Elgg\Controllers\GenericContent::handleRequest |
( |
\Elgg\Request |
$request | ) |
|
|
abstractprotected |
◆ $request
| Elgg Request Elgg\Controllers\GenericContent::$request = null |
|
protected |
◆ $route
| Elgg Router Route Elgg\Controllers\GenericContent::$route = null |
|
protected |
◆ $route_parts
| array Elgg\Controllers\GenericContent::$route_parts = null |
|
protected |
The documentation for this class was generated from the following file: