1 | <?php |
||
24 | class Domains extends Field implements FieldInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | public $unique = true; |
||
30 | |||
31 | /** |
||
32 | * @var int|null The maximum number of relations this field can have (used if [[allowLimit]] is set to true) |
||
33 | */ |
||
34 | public $limit; |
||
35 | |||
36 | /** |
||
37 | * @var bool Whether to allow the Limit setting |
||
38 | */ |
||
39 | public $allowLimit = true; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | public $defaultStatus = 'pending'; |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | public static function displayName(): string |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public static function getStatuses(): array |
||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public static function hasContentColumn(): bool |
||
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | public function getElementValidationRules(): array |
||
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | public function modifyElementsQuery(ElementQueryInterface $query, $value) |
||
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | * @return DomainsQuery |
||
100 | */ |
||
101 | public function normalizeValue($value, ElementInterface $element = null) |
||
105 | |||
106 | |||
107 | /** |
||
108 | * @param DomainsQuery $value |
||
109 | * @inheritdoc |
||
110 | */ |
||
111 | public function getSearchKeywords($value, ElementInterface $element): string |
||
121 | |||
122 | |||
123 | /******************************************* |
||
124 | * VIEWS |
||
125 | *******************************************/ |
||
126 | |||
127 | /** |
||
128 | * @param DomainsQuery $value |
||
129 | * @inheritdoc |
||
130 | */ |
||
131 | public function getInputHtml($value, ElementInterface $element = null): string |
||
135 | |||
136 | |||
137 | /******************************************* |
||
138 | * EVENTS |
||
139 | *******************************************/ |
||
140 | |||
141 | /** |
||
142 | * @inheritdoc |
||
143 | */ |
||
144 | public function afterElementSave(ElementInterface $element, bool $isNew) |
||
152 | } |
||
153 |