All Data Structures Namespaces Files Functions Variables
HookEvent.php
Go to the documentation of this file.
<?php
namespace Tools;
class HookEvent
{
private $context;
private $hookName;
private $params;
public function __construct($hookName, $context, $params)
{
$this->context = $context;
$this->hookName = $hookName;
$this->params = $params;
}
public function __get($key)
{
switch ($key)
{
case "hookName": return $this->hookName; break;
case "params": return $this->params; break;
}
throw new \Exception("Cannot access attribute {$key}");
}
}
Tools\HookEvent\$hookName
$hookName
Definition: HookEvent.php:23
Tools\HookEvent\__get
__get($key)
Definition: HookEvent.php:45
Tools\HookEvent\$context
$context
Definition: HookEvent.php:16
Tools\HookEvent\$params
$params
Definition: HookEvent.php:30
Tools\HookEvent
Definition: HookEvent.php:9
Tools
Definition: AController.php:3
Tools\HookEvent\__construct
__construct($hookName, $context, $params)
Definition: HookEvent.php:35