Update code of third part of tutorial series
[GitHub/WoltLab/woltlab.github.io.git] / snippets / tutorial / tutorial-series / part-3 / files / lib / page / PersonListPage.class.php
1 <?php
2
3 namespace wcf\page;
4
5 use wcf\data\person\PersonList;
6
7 /**
8 * Shows the list of people.
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2021 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\Page
14 */
15 class PersonListPage extends SortablePage
16 {
17 /**
18 * @inheritDoc
19 */
20 public $defaultSortField = 'lastName';
21
22 /**
23 * @inheritDoc
24 */
25 public $objectListClassName = PersonList::class;
26
27 /**
28 * @inheritDoc
29 */
30 public $validSortFields = ['personID', 'firstName', 'lastName'];
31 }