KWeb  6.4
KWebEvent Class Reference
Inheritance diagram for KWebEvent:
Event

Public Member Functions

 __construct ($subject, $name, $parameters=array())
 Constructs a new KWebEvent.

Data Fields

const SESSION_LOGIN = "kweb.session.login"
const USER_EDIT = "kweb.user.edit"
const USER_CREATE = "kweb.user.create"
const USER_VERIFIED = "kweb.user.verified"
const TEMPLATE_FINISHED = KWebTemplate::EVENT_FINISHED
const ITEM_CANADDTYPE = "kweb.item.canaddtype"
 Event called when checking, if item of the specified type (passed as ['type']) can be added to the KWebItem passed as $subject in attribute id (passed as ['attr_id']).

Constructor & Destructor Documentation

KWebEvent::__construct ( subject,
name,
parameters = array() 
)

Constructs a new KWebEvent.

Parameters:
mixed$subjectThe subject object
string$nameThe event name
array$parametersAn array of parameters

Reimplemented from Event.


Field Documentation

const KWebEvent::ITEM_CANADDTYPE = "kweb.item.canaddtype"

Event called when checking, if item of the specified type (passed as ['type']) can be added to the KWebItem passed as $subject in attribute id (passed as ['attr_id']).

Event handler can use setReturnValue() to pass true/false, and/or return anything other than null to break the event chain.

const KWebEvent::SESSION_LOGIN = "kweb.session.login"
const KWebEvent::USER_CREATE = "kweb.user.create"
const KWebEvent::USER_EDIT = "kweb.user.edit"
const KWebEvent::USER_VERIFIED = "kweb.user.verified"

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