PHP Класс Elgg\Notifications\Event

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$action * @var string The name of the action/event
$actor * @var ElggEntity User who triggered the event
$object * @var string Action's object

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Get the name of the action
public getAction ( ) : string
Результат string

getActor() публичный Метод

Get the actor of the event
public getActor ( ) : ElggEntit\ElggEntity | false | null
Результат ElggEntit\ElggEntity | false | null

getActorGUID() публичный Метод

Get the GUID of the actor
public getActorGUID ( ) : integer
Результат integer

getDescription() публичный Метод

Get a description of the event
public getDescription ( ) : string
Результат string

getObject() публичный Метод

Get the object of the event
public getObject ( ) : ElggDat\ElggData | false | null
Результат ElggDat\ElggData | false | null

toObject() публичный Метод

Export the notification event into a serializable object This method is mainly used for logging purposes
public toObject ( ) : stdClas\stdClass
Результат stdClas\stdClass

Описание свойств

$action защищенное свойство

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

$actor защищенное свойство

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

$object защищенное свойство

* @var string Action's object
protected $object