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
string
The table used
string
The name of the field with the primary key
string
The name of the field that holds the order
\Gems_Exception |
---|
direct(string $sortAction= 'sort'
, string $urlIdParam= 'id'
) : \MUtil_Html_HtmlElement
string
The name of the ajax action
string
The namr used to refer to the record ID in the url
\MUtil_Html_HtmlElement
getView() : \Zend_View_Interface
\Zend_View_Interface