1 | <?php |
||
27 | class Domains extends Field implements FieldInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | public $unique = true; |
||
33 | |||
34 | /** |
||
35 | * @var int|null |
||
36 | */ |
||
37 | public $min; |
||
38 | |||
39 | /** |
||
40 | * @var int|null |
||
41 | */ |
||
42 | public $max; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | public $defaultStatus = 'pending'; |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public static function displayName(): string |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public static function getStatuses(): array |
||
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | public static function hasContentColumn(): bool |
||
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | public function getElementValidationRules(): array |
||
97 | |||
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | public function modifyElementsQuery(ElementQueryInterface $query, $value) |
||
106 | |||
107 | /** |
||
108 | * @inheritdoc |
||
109 | * @return DomainsQuery |
||
110 | */ |
||
111 | public function normalizeValue($value, ElementInterface $element = null) |
||
115 | |||
116 | |||
117 | /** |
||
118 | * @param DomainsQuery $value |
||
119 | * @inheritdoc |
||
120 | */ |
||
121 | public function getSearchKeywords($value, ElementInterface $element): string |
||
131 | |||
132 | |||
133 | /******************************************* |
||
134 | * VIEWS |
||
135 | *******************************************/ |
||
136 | |||
137 | /** |
||
138 | * @inheritdoc |
||
139 | */ |
||
140 | public function getSettingsHtml() |
||
144 | |||
145 | /** |
||
146 | * @param DomainsQuery $value |
||
147 | * @inheritdoc |
||
148 | */ |
||
149 | public function getInputHtml($value, ElementInterface $element = null): string |
||
153 | |||
154 | |||
155 | /******************************************* |
||
156 | * EVENTS |
||
157 | *******************************************/ |
||
158 | |||
159 | /** |
||
160 | * @inheritdoc |
||
161 | */ |
||
162 | public function afterElementSave(ElementInterface $element, bool $isNew) |
||
170 | } |
||
171 |