PHP 클래스 Prado\Web\UI\JuiControls\TJuiEventParameter

TJuiEventParameter encapsulate the parameters for callback events of TJui* components. Any parameter representing a control is identified by its clientside ID. TJuiEventParameter contains a {@link 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 {@link 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;
상속: extends Prado\Web\UI\ActiveControls\TCallbackEventParameter
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__get ( $name ) : mixed Gets a control instance named after a returned control id.
getControl ( $id ) : TControl getControl

메소드 상세

__get() 공개 메소드

Example: if a $param->draggable control id is returned from clientside, calling $param->DraggableControl will return the control instance
public __get ( $name ) : mixed
리턴 mixed control or null if not set.

getControl() 공개 메소드

Compatibility method to get a control from its clientside id
public getControl ( $id ) : TControl
리턴 Prado\Web\UI\TControl control, or null if not found