Class \Prado\Web\UI\JuiControls\TJuiEventParameter
TJuiEventParameter class
TJuiEventParameter encapsulate the parameters for callback events of TJui* components. Any parameter representing a control is identified by its clientside ID. TJuiEventParameter contains a getControl helper method that retrieves an existing PRADO control on che current page from its clientside ID as returned by the callback. For example, if the parameter contains a "draggable" item (as returned in TJuiDroppable::OnDrop event), the relative PRADO control can be retrieved using:
$draggable = $param->getControl($param->getCallbackParameter()->draggable);
A shortcut __get() method is implemented, too:
$draggable = $param->DraggableControl;
Class hierarchy
- \Prado\Web\UI\JuiControls\TJuiEventParameter
- \Prado\Web\UI\ActiveControls\TCallbackEventParameter
- \Prado\TEventParameter implements IEventParameter
- \Prado\TComponent
public
|
__get(mixed $name) : mixed
Gets a control instance named after a returned control id.
Example: if a $param->draggable control id is returned from clientside, calling $param->DraggableControl will return the control instance |
public
|
getControl(mixed $id) : TControl
getControl
Compatibility method to get a control from its clientside id |
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |