function callback_request($sender, $param)
{
$this->active_row->render($param->getNewWriter());
}
Please refer to the original documentation of the regular counterpart for usage.
Показать файл
Открыть проект
Метод | Описание | |
---|---|---|
__construct ( ) | Creates a new callback control, sets the adapter to TActiveControlAdapter. | |
bubbleEvent ( $sender, $param ) : boolean | This method overrides parent's implementation and raises the control's callback event. This will fire the {@link onRowSelected OnRowSelected} event if an appropriate event handler is implemented. | |
getActiveControl ( ) : |
||
getClientSide ( ) : |
||
getRowIndex ( ) : integer | Returns the zero-based index of the TActiveTableRow within the {@link TTableRowCollection} of the parent {@link TTable} control. Raises a {@link TConfigurationException} if the row is no member of the row collection. | |
getTable ( ) : |
Returns the parent {@link TTable} control by looping through all parents until a {@link TTable} is found. Raises a {@link TConfigurationException} if no table control is found. | |
onRowSelected ( $param ) | This method is invoked when a callback is requested. The method raises 'OnRowSelected' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked. | |
raiseCallbackEvent ( $param ) | Raises the callback event. This method is required by {@link ICallbackEventHandler} interface. It will raise {@link onRowSelected OnRowSelected} event with a {@link TActiveTableRowEventParameter} containing the zero-based index of the TActiveTableRow. | |
render ( $writer ) | Renders and replaces the row's content on the client-side. When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised. |
Метод | Описание | |
---|---|---|
addAttributesToRender ( $writer ) | Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control if the event handler for the {@link onRowSelected OnRowSelected} event is set. | |
getClientClassName ( ) : string | ||
getPostBackOptions ( ) : array | Returns postback specifications for the table row. |
public __construct ( ) |
protected addAttributesToRender ( $writer ) |
public bubbleEvent ( $sender, $param ) : boolean | ||
Результат | boolean | whether the event bubbling should stop here. |
public getActiveControl ( ) : |
||
Результат | standard callback control options. |
protected getClientClassName ( ) : string | ||
Результат | string | corresponding javascript class name for this TActiveTableRow. |
public getClientSide ( ) : |
||
Результат | client side request options. |
protected getPostBackOptions ( ) : array | ||
Результат | array | parameters about how the row defines its postback behavior. |
public getRowIndex ( ) : integer | ||
Результат | integer | the zero-based index of the row |
public getTable ( ) : |
||
Результат | the parent table control |
public onRowSelected ( $param ) |
public raiseCallbackEvent ( $param ) |
public render ( $writer ) |