RdbAdmin Module

DataTablesJs
in package

DataTables class that work with datatables.net (JS).

Tags
since
0.1

Table of Contents

Methods

buildSortOrdersFromInput()  : array<string|int, mixed>
Build sort & order values from parameters such as GET method.

Methods

buildSortOrdersFromInput()

Build sort & order values from parameters such as GET method.

public buildSortOrdersFromInput([array<string|int, mixed> $columns = [] ][, array<string|int, mixed> $order = [] ]) : array<string|int, mixed>
Parameters
$columns : array<string|int, mixed> = []

The array from $_GET value of 'columns' name.

$order : array<string|int, mixed> = []

The array from $_GET value of 'order' name.

Tags
link

The word definition of sort and order.

link

The word definition of sort and order.

link

The word definition of sort and order.

Return values
array<string|int, mixed>

Return array list of sort & order values by the order of multi sort. Example:

array(
    array(
        'sort' => 'my_field_name1',
        'order' => 'asc',
    ),
    array(
        'sort' => 'my_field_name2',
        'order' => 'asc',
    ),
);

        
On this page

Search results