Property | Type | Description | |
---|---|---|---|
$action | * @var string The name of the action/event | ||
$actor | * @var ElggEntity User who triggered the event | ||
$object | * @var string Action's object |
Method | Description | |
---|---|---|
__construct ( ElggDat\ElggData $object, string $action, ElggEntit\ElggEntity $actor = null ) | Create a notification event | |
getAction ( ) : string | Get the name of the action | |
getActor ( ) : ElggEntit\ElggEntity | false | null | Get the actor of the event | |
getActorGUID ( ) : integer | Get the GUID of the actor | |
getDescription ( ) : string | Get a description of the event | |
getObject ( ) : ElggDat\ElggData | false | null | Get the object of the event | |
toObject ( ) : stdClas\stdClass | Export the notification event into a serializable object This method is mainly used for logging purposes |
public __construct ( ElggDat\ElggData $object, string $action, ElggEntit\ElggEntity $actor = null ) | ||
$object | ElggDat\ElggData | The object of the event (ElggEntity) |
$action | string | The name of the action (default: create) |
$actor | ElggEntit\ElggEntity | The entity that caused the event (default: logged in user) |
public getActorGUID ( ) : integer | ||
return | integer |
public getDescription ( ) : string | ||
return | string |
public toObject ( ) : stdClas\stdClass | ||
return | stdClas\stdClass |