VihvLCC  3.0.0
EventManager Class Reference

Public Member Functions

 __construct ()
 
 addListener (Control $control)
 
 getAllListeners ()
 
 park (Control $control)
 
 parkMany ($controls)
 
 setAcl (IAcl $acl)
 
 getListenerByClassName ($Name)
 
 checkPermission ($Resource, $Action)
 
 doEvents ()
 
 doBeforeDisplay ()
 
 doDefaultPage ()
 
 doGet ()
 
 doPost ()
 
 doEvent ($Event, $Input=null)
 

Detailed Description

Publisher (in Publisher-Subscriber) manage events for all controls ! this is not singlethon since version 3.0.0, see also new onParkedEvent ( class)

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

addListener ( Control  $control)

add new listener, do not call directly, use park() or parkMany() instead

Parameters
\vihv\Control$control

Here is the call graph for this function:

checkPermission (   $Resource,
  $Action 
)

check permission for current user to do $action on $resource

doBeforeDisplay ( )

call onBeforeDisplay event

doDefaultPage ( )

call onDefaultPage event

doEvent (   $Event,
  $Input = null 
)

call event by name

Parameters
string$Event
Array$Inputevent params
doEvents ( )

call common events onPost, onGet, onDefaultPage in case it's post or get request, the onBeforeDisplay

Here is the caller graph for this function:

doGet ( )

call onGet event

doPost ( )

call onPost event

getAllListeners ( )
Returns
Array of listeners
getListenerByClassName (   $Name)
Parameters
string$Nameclass name
Returns
Exceptions
EListenerNotFound
park ( Control  $control)

add control as listener and also all his child controls, then call onParked event

Parameters
\vihv\Control$control
parkMany (   $controls)

park each control from array

Parameters
Arrayof $controls
setAcl ( IAcl  $acl)

set ACL object, ACL object will check if current user is allowed to perform some action with control (see ::__call())

Parameters
\vihv\IAcl$acl

Here is the caller graph for this function:


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