Documentation

Listener extends DefinedCollection
in package

A listener is a very simple class that contains an event name and an action.

If an event with a matching event name comes by, the action will be invoked and the event will be passed.

Tags
author

César de la Cal Bretschneider cesar@magic3w.com

Table of Contents

do()  : mixed
handle()  : mixed

Methods

do()

public do(mixed $smthg) : mixed
Parameters
$smthg : mixed
Return values
mixed

handle()

public handle(Event $event) : mixed
Parameters
$event : Event
Return values
mixed

Search results