Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / language / item / LanguageItem.class.php
1 <?php
2
3 namespace wcf\data\language\item;
4
5 use wcf\data\DatabaseObject;
6
7 /**
8 * Represents a language item.
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\Language\Item
14 *
15 * @property-read int $languageItemID unique id of the language item
16 * @property-read int $languageID id of the language the language item belongs to
17 * @property-read string $languageItem name and textual identifier of the language item
18 * @property-read string $languageItemValue default value of the language item
19 * @property-read string $languageCustomItemValue custom value of the language item set by an admin
20 * @property-read int $languageUseCustomValue is `1` if the custom value is used instead of the default value, otherwise `0`
21 * @property-read int $languageItemOriginIsSystem is `1` if the language item has been delivered by a package, otherwise `0` (for example, if language item has been created for i18n content)
22 * @property-read int $languageCategoryID id of the language category the language item belongs to
23 * @property-read int|null $packageID id of the package the which delivers the language item or with which the language item is associated
24 * @property-read string $languageItemOldValue previous default value of the language item
25 * @property-read int $languageCustomItemDisableTime the timestamp at which the custom version has been disabled due to a change to the original value
26 * @property-read int $isCustomLanguageItem is `1` if the language item has been added manually via the ACP
27 */
28 class LanguageItem extends DatabaseObject
29 {
30 /**
31 * @inheritDoc
32 */
33 protected static $databaseTableIndexName = 'languageItemID';
34 }