ecom
E-commerce cms
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Private Attributes
HookEvent Class Reference

Public Member Functions

 __construct ($hookName, $context, $params)
 
 __get ($key)
 

Private Attributes

 $context
 
 $hookName
 
 $params
 

Detailed Description

Event's parameters This classe is attached to a hook when fired

Definition at line 9 of file HookEvent.php.

Constructor & Destructor Documentation

__construct (   $hookName,
  $context,
  $params 
)

Constructor

Definition at line 35 of file HookEvent.php.

36  {
37  $this->context = $context;
38  $this->hookName = $hookName;
39  $this->params = $params;
40  }

Member Function Documentation

__get (   $key)

Getter

Definition at line 45 of file HookEvent.php.

46  {
47  switch ($key)
48  {
49  case "hookName": return $this->hookName; break;
50  case "params": return $this->params; break;
51  }
52  throw new \Exception("Cannot access attribute {$key}");
53  }

Field Documentation

Tools Context $context
private

/core/tools/Context.php Contains website's informations

Definition at line 16 of file HookEvent.php.

string $hookName
private

Contains hook name Can be accessed read-only

Definition at line 23 of file HookEvent.php.

$params
private

Definition at line 30 of file HookEvent.php.


The documentation for this class was generated from the following file: