ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTermsOfServiceDocumentTableDataProvider Class Reference

Class ilTermsOfServiceDocumentTableDataProvider. More...

+ Inheritance diagram for ilTermsOfServiceDocumentTableDataProvider:
+ Collaboration diagram for ilTermsOfServiceDocumentTableDataProvider:

Public Member Functions

 getList (array $params, array $filter)
 
Parameters
array$paramsTable parameters like limit or order
array$filterFilter settings provided by a ilTable2GUI instance
Returns
array An associative array with keys 'items' (array of items) and 'cnt' (number of total items)
More...
 

Detailed Description

Member Function Documentation

◆ getList()

ilTermsOfServiceDocumentTableDataProvider::getList ( array  $params,
array  $filter 
)

Parameters
array$paramsTable parameters like limit or order
array$filterFilter settings provided by a ilTable2GUI instance
Returns
array An associative array with keys 'items' (array of items) and 'cnt' (number of total items)

Implements ilTermsOfServiceTableDataProvider.

Definition at line 13 of file class.ilTermsOfServiceDocumentTableDataProvider.php.

References ActiveRecord\orderBy().

Referenced by ilTermsOfServiceDocumentTableDataProviderTest\testListOfDocumentsCanBeRetrieved().

13  : array
14  {
15  $items = \ilTermsOfServiceDocument::orderBy('sorting')->get();
16 
17  return [
18  'items' => $items,
19  'cnt' => count($items)
20  ];
21  }
static orderBy($orderBy, $orderDirection='ASC')
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: