Documentation

Listens

Trait \Hoa\Event\Listens.

Implementation of a listener.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

Table of Contents

Properties

$_listener  : Listener
Listener instance.

Methods

on()  : Listenable
Attach a callable to a listenable component.
getListener()  : Listener
Get listener.
setListener()  : Listener
Set listener.

Properties

Methods

on()

Attach a callable to a listenable component.

public on(string $listenerId, mixed $callable) : Listenable
Parameters
$listenerId : string

Listener ID.

$callable : mixed

Callable.

Return values
Listenable

        
On this page

Search results