Elgg  Version 6.2
Protected Member Functions | Protected Attributes | List of all members
Elgg\Controllers\EntityEditAction Class Reference

Generic entity edit action controller. More...

Inheritance diagram for Elgg\Controllers\EntityEditAction:
Elgg\Controllers\GenericAction

Protected Member Functions

 executeBefore ()
 {} More...
 
 execute (array $skip_field_names=[])
 {} More...
 
 executeAfter ()
 {} More...
 
 success (?string $forward_url=null)
 {} More...
 
 isNewEntity ()
 Is the entity being saved a new entity or being updated. More...
 
- Protected Member Functions inherited from Elgg\Controllers\GenericAction
 sanitize ()
 Sanitizes input for the action. More...
 
 validate ()
 Validates the action. More...
 
 executeBefore ()
 Preparation before executing the action. More...
 
 execute ()
 Main part of the action. More...
 
 executeAfter ()
 Action part after the main execution. More...
 
 success ()
 Will be used when an action is successfully finished. More...
 
 error (string $message)
 Will be used when something wrong happened during the handling of the action. More...
 

Protected Attributes

ElggEntity $entity
 
bool $is_new_entity = true
 
- Protected Attributes inherited from Elgg\Controllers\GenericAction
Elgg Request $request
 

Additional Inherited Members

- Public Member Functions inherited from Elgg\Controllers\GenericAction
 __invoke (\Elgg\Request $request)
 Invoke the action steps. More...
 

Detailed Description

Generic entity edit action controller.

Since
6.2

Definition at line 15 of file EntityEditAction.php.

Member Function Documentation

Elgg\Controllers\EntityEditAction::execute ( array  $skip_field_names = [])
protected

{}

Parameters
array$skip_field_namesfield names to skip when saving field metadata
Exceptions
ValidationException

Definition at line 76 of file EntityEditAction.php.

Elgg\Controllers\EntityEditAction::executeAfter ( )
protected

{}

Exceptions
InternalServerErrorException

Definition at line 123 of file EntityEditAction.php.

Elgg\Controllers\EntityEditAction::executeBefore ( )
protected

{}

Exceptions
InternalServerErrorException
EntityPermissionsException

Definition at line 27 of file EntityEditAction.php.

Elgg\Controllers\EntityEditAction::isNewEntity ( )
protected

Is the entity being saved a new entity or being updated.

Returns
bool

Definition at line 173 of file EntityEditAction.php.

Elgg\Controllers\EntityEditAction::success ( ?string  $forward_url = null)
protected

{}

Parameters
string | null$forward_urlurl to forward to

Definition at line 142 of file EntityEditAction.php.

Member Data Documentation

ElggEntity Elgg\Controllers\EntityEditAction::$entity
protected

Definition at line 17 of file EntityEditAction.php.

bool Elgg\Controllers\EntityEditAction::$is_new_entity = true
protected

Definition at line 19 of file EntityEditAction.php.


The documentation for this class was generated from the following file: