1 | <?php |
||
23 | class Settings extends Model |
||
24 | { |
||
25 | use FieldLayoutAttributeTrait, |
||
26 | SiteSettingAttributeTrait; |
||
27 | |||
28 | /** |
||
29 | * @var int|null|false |
||
30 | */ |
||
31 | public $userSidebarTemplate = 'organizations/_components/hooks/users/details'; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $usersTabOrder = 10; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $usersTabLabel = 'Users'; |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | 3 | public static function siteSettingsClass(): string |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | protected static function fieldLayoutType(): string |
||
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | public function getUserStates(): array |
||
70 | |||
71 | /** |
||
72 | * Get the User tab order found on the Organization entry page. |
||
73 | */ |
||
74 | public function getUsersTabOrder(): int |
||
78 | |||
79 | /** |
||
80 | * Set the User tab order found on the Organization entry page. |
||
81 | * |
||
82 | * @param int $order |
||
83 | * @return $this |
||
84 | */ |
||
85 | public function setUsersTabOrder(int $order) |
||
90 | |||
91 | /** |
||
92 | * Get the User tab label found on the Organization entry page. |
||
93 | */ |
||
94 | public function getUsersTabLabel(): string |
||
98 | |||
99 | /** |
||
100 | * Set the User tab label found on the Organization entry page. |
||
101 | * |
||
102 | * @param string $label |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setUsersTabLabel(string $label) |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getDefaultUserState(): string |
||
118 | |||
119 | /** |
||
120 | * @inheritdoc |
||
121 | */ |
||
122 | public function rules() |
||
155 | |||
156 | /** |
||
157 | * @inheritdoc |
||
158 | */ |
||
159 | public function attributes() |
||
172 | |||
173 | /** |
||
174 | * @inheritdoc |
||
175 | */ |
||
176 | public function attributeLabels() |
||
188 | |||
189 | |||
190 | /******************************************* |
||
191 | * STATES |
||
192 | *******************************************/ |
||
193 | |||
194 | /** |
||
195 | * @return $this |
||
196 | * @deprecated |
||
197 | */ |
||
198 | public function setStates() |
||
202 | |||
203 | /** |
||
204 | * @return $this |
||
205 | * @deprecated |
||
206 | */ |
||
207 | public function setDefaultStates() |
||
211 | |||
212 | |||
213 | /******************************************* |
||
214 | * SITE SETTINGS |
||
215 | *******************************************/ |
||
216 | |||
217 | /** |
||
218 | * @param int|null $siteId |
||
219 | * @return bool |
||
220 | * @throws \craft\errors\SiteNotFoundException |
||
221 | */ |
||
222 | public function isSiteEnabled(int $siteId = null): bool |
||
230 | |||
231 | /** |
||
232 | * @return array |
||
233 | * @throws \craft\errors\SiteNotFoundException |
||
234 | */ |
||
235 | public function getEnabledSiteIds(): array |
||
239 | } |
||
240 |