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}
static orderBy($orderBy, $orderDirection='ASC')
An exception for terminatinating execution or to throw for unit testing.
getList(array $params, array $filter)
array An associative array with keys 'items' (array of items) and 'cnt' (number of total items)
Interface ilTermsOfServiceTableDataProvider.