Generic controller to handle entity view/edit/add routes.
More...
Generic controller to handle entity view/edit/add routes.
- Since
- 7.1
Definition at line 15 of file GenericEntity.php.
◆ addEntity()
| Elgg\Controllers\GenericEntity::addEntity |
( |
| ) |
|
|
protected |
Render an entity add page.
- Returns
- string
- Exceptions
-
Definition at line 144 of file GenericEntity.php.
◆ assertValidRoute()
| Elgg\Controllers\GenericEntity::assertValidRoute |
( |
| ) |
|
|
protected |
◆ editEntity()
| Elgg\Controllers\GenericEntity::editEntity |
( |
| ) |
|
|
protected |
Render an entity edit page.
- Returns
- string
- Exceptions
-
Definition at line 163 of file GenericEntity.php.
◆ getEntity()
| Elgg\Controllers\GenericEntity::getEntity |
( |
bool |
$validate_can_edit = false | ) |
|
|
protected |
Get the entity from the request.
- Parameters
-
| bool | $validate_can_edit | flag to check canEdit access |
- Returns
- \ElggEntity
- Exceptions
-
Definition at line 59 of file GenericEntity.php.
◆ getPage()
| Elgg\Controllers\GenericEntity::getPage |
( |
| ) |
|
|
protected |
◆ getPageOptions()
| Elgg\Controllers\GenericEntity::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', 'view', 'add', etc.) |
| array | $options | current page options |
- Returns
- array
- See also
- elgg_view_page()
}
Reimplemented from Elgg\Controllers\GenericContent.
Definition at line 98 of file GenericEntity.php.
◆ handleRequest()
| Elgg\Controllers\GenericEntity::handleRequest |
( |
\Elgg\Request |
$request | ) |
|
|
finalprotected |
◆ prepareBreadcrumbs()
| Elgg\Controllers\GenericEntity::prepareBreadcrumbs |
( |
| ) |
|
|
protected |
◆ viewEntity()
| Elgg\Controllers\GenericEntity::viewEntity |
( |
| ) |
|
|
protected |
Render the entity view page.
- Returns
- string
- Exceptions
-
Definition at line 179 of file GenericEntity.php.
◆ $entity
| ElggEntity Elgg\Controllers\GenericEntity::$entity = null |
|
protected |
The documentation for this class was generated from the following file: