ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTermsOfServiceDocumentTableDataProvider.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function getList(array $params, array $filter) : array
14  {
15  $items = \ilTermsOfServiceDocument::orderBy('sorting')->get();
16 
17  return [
18  'items' => $items,
19  'cnt' => count($items)
20  ];
21  }
22 }
Interface ilTermsOfServiceTableDataProvider.
getList(array $params, array $filter)
Table parameters like limit or order Filter settings provided by a ilTable2GUI instance array An asso...
static orderBy($orderBy, $orderDirection='ASC')