$results
$results :
Class that handles the AJAX based sorting of data tables.
add_data_rows(string $divid, string $table_alias, array $rows, array $data = array())
Adds one or more rows to a table. Used for a variety of reasons including search, sort, and pagination.
string | $divid | The element ID of the table. |
string | $table_alias | The alias of the data table component, formatted PACKAGE:ALIAS |
array | $rows | An array of associative arrays that contain the table row(s) to add. Same as returned from $table->get_rows() method. |
array | $data | Any additional data / attributes from within the |
set_pagination(string $divid, array $details)
Sets the pagination links of a data table component. Used during pagination, search, and sort of a table.
string | $divid | The element ID of the table / pagination links |
array | $details | Table details as provided by the 'apex\core\table_functions\get_details' method. |
add(string $action, array $vars)
Add AJAX action
Adds an entry to the self::$actions array. Upon request completion, this array is formatted into JSON, and returned to the browser for processing via Javascript.
string | $action | The action to perform within the web browser. |
array | $vars | An array containing all necessary variables, different for each action. |