1200e907793de3dd9f67b89d5fbdaebd8e3f1f15
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / custom / option / CustomOptionList.class.php
1 <?php
2
3 namespace wcf\data\custom\option;
4
5 use wcf\data\DatabaseObjectList;
6
7 /**
8 * Represents a list of options.
9 *
10 * @author Alexander Ebert
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\Data\Custom\Option
14 * @since 3.1
15 *
16 * @method CustomOption current()
17 * @method CustomOption[] getObjects()
18 * @method CustomOption|null getSingleObject()
19 * @method CustomOption|null seach($objectID)
20 * @property CustomOption[] $objects
21 */
22 abstract class CustomOptionList extends DatabaseObjectList
23 {
24 /**
25 * @inheritDoc
26 */
27 public $className = CustomOption::class;
28
29 /**
30 * @inheritDoc
31 */
32 public $sqlOrderBy = 'showOrder';
33
34 /**
35 * @inheritDoc
36 */
37 public function __construct()
38 {
39 parent::__construct();
40
41 $this->sqlSelects = "CONCAT('customOption', CAST({$this->getDatabaseTableAlias()}.optionID AS CHAR)) AS optionName";
42 }
43 }