Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Cli
WS
on
Cli\WS::on PHP Method
WS Class Documentation
Show file
Open project: bcosca/fatfree-core
on()
public
method
Bind function to event handler
public
on
(
$event
,
$func
) :
object
$event
string
$func
callable
return
object
function on($event, $func) { $this->events[$event] = $func; return $this; }
WS
__construct
agents
alloc
close
events
free
kill
on
read
run
write