Skip to content
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

  • $e Event kind (KEY, etc...)

  • $x Callback (callable)

  • return $this

function handle($e,array $args=[])

Simulate an event

  • $e Event kind (KEY, etc...)

  • $args Event arguments

  • return Return value of handler or null

function prop($p,$x = Tools::GET )

Gets or sets a property

  • $p The property name

  • $x The new value, or Tools::GET for query

  • return The 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

Clone this wiki locally