PHP Class Elgg\Notifications\Event

Afficher le fichier Open project: elgg/elgg Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

Create a notification event
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)

getAction() public méthode

Get the name of the action
public getAction ( ) : string
Résultat string

getActor() public méthode

Get the actor of the event
public getActor ( ) : ElggEntit\ElggEntity | false | null
Résultat ElggEntit\ElggEntity | false | null

getActorGUID() public méthode

Get the GUID of the actor
public getActorGUID ( ) : integer
Résultat integer

getDescription() public méthode

Get a description of the event
public getDescription ( ) : string
Résultat string

getObject() public méthode

Get the object of the event
public getObject ( ) : ElggDat\ElggData | false | null
Résultat ElggDat\ElggData | false | null

toObject() public méthode

Export the notification event into a serializable object This method is mainly used for logging purposes
public toObject ( ) : stdClas\stdClass
Résultat stdClas\stdClass

Property Details

$action protected_oe property

* @var string The name of the action/event
protected $action

$actor protected_oe property

* @var ElggEntity User who triggered the event
protected $actor

$object protected_oe property

* @var string Action's object
protected $object