Documentation

CrmEventDispatcher
in package

CrmEventDispatcher Class CRM

Tags
category

CrmEventDispatcher

subpackage

module_crm

author

SoftSolutions4U Development Team info@softsolutions4u.com

copyright

2012 and CLOUDREXX CMS - CLOUDREXX AG

license

trial license

link
www.cloudrexx.com

Table of Contents

Properties

$handlers  : array<string|int, EventHandler>
handler
$instance  : object
Class object

Methods

addHandler()  : null
Add handler
getInstance()  : EventDispatcher
Get instance of the class
triggerEvent()  : bool
Trigger the event
__clone()  : null
Dublicate copy
__construct()  : mixed
Constructor

Properties

Methods

addHandler()

Add handler

public addHandler(string $event_name, EventHandler $event_handler) : null
Parameters
$event_name : string

event name

$event_handler : EventHandler

event handler

Return values
null

getInstance()

Get instance of the class

public static getInstance() : EventDispatcher
Tags
static
Return values
EventDispatcher

triggerEvent()

Trigger the event

public triggerEvent(string $event_name[, string $context = null ][, string $info = null ]) : bool
Parameters
$event_name : string

event name

$context : string = null

event context

$info : string = null

event info

Return values
bool

        
On this page

Search results