-
Notifications
You must be signed in to change notification settings - Fork 0
Elem
Várnagy Zoltán edited this page Sep 11, 2026
·
1 revision
class Elem
Base class for Views, Actions, Menus, etc..
ELEM Kind constant
Actions
FIRE default action (like button press)
Properties
ID identifier of Elem
NAME name of Elem
function kind()
Returns the kind constant (different for each Elem)
function handler($e,$x=null)
Sets an event handler
-
$eEvent kind (KEY, etc...) -
$xCallback (callable) -
return$this
function handle($e,array $args=[])
Simulate an event
-
$eEvent kind (KEY, etc...) -
$argsEvent arguments -
returnReturn value of handler or null
function prop($p,$x = Tools::GET )
Gets or sets a property
-
$pThe property name -
$xThe new value, orTools::GETfor query -
returnThe current value if queried
function isProp($p)
Does $p property exists for this Elem
function isHandler($h)
Does $h handler exist for this Elem
function defArg()
The default argument set
if $args in __create() is not an array