This action belper makes sorting table data that has an order field easier
Implement by adding the buttons returned by the direct method to the bottom of the table output. Create an action that calls the ajaxRequest method.
| package | Gems |
|---|---|
| subpackage | Controller\Action |
| copyright | Copyright (c) 2016 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.8.1 |
ajaxAction(string $table, string $idField, string $orderField) : void
stringThe table used
stringThe name of the field with the primary key
stringThe name of the field that holds the order
\Gems_Exception |
|---|
direct(string $sortAction= 'sort', string $urlIdParam= 'id') : \MUtil_Html_HtmlElement
stringThe name of the ajax action
stringThe namr used to refer to the record ID in the url
\MUtil_Html_HtmlElementgetView() : \Zend_View_Interface
\Zend_View_Interface