Elgg  Version 4.3
Event.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
12 class Event implements
13  \Elgg\Event {
14 
15  const EVENT_TYPE = 'event';
16 
17  private $dic;
18  private $name;
19  private $type;
20  private $object;
21 
30  public function __construct(PublicContainer $dic, $name, $type, $object) {
31  $this->dic = $dic;
32  $this->name = $name;
33  $this->type = $type;
34  $this->object = $object;
35  }
36 
40  public function getName() {
41  return $this->name;
42  }
43 
47  public function getType() {
48  return $this->type;
49  }
50 
54  public function getObject() {
55  return $this->object;
56  }
57 
61  public function elgg() {
62  return $this->dic;
63  }
64 }
getType()
{Get the type of the event object.string}
Definition: Event.php:47
elgg()
{Get the DI container.PublicContainer}
Definition: Event.php:61
getName()
{Get the name of the event.string}
Definition: Event.php:40
$site name
Definition: settings.php:21
getObject()
{Get the object of the event.mixed}
Definition: Event.php:54
The object passed to invokable class name handlers.
Definition: Event.php:12
__construct(PublicContainer $dic, $name, $type, $object)
Constructor.
Definition: Event.php:30
Models an event passed to event handlers.
Definition: Event.php:11