1 | <?php |
||
28 | trait SiteAttributeTrait |
||
29 | { |
||
30 | use ActiveRecordTrait, |
||
31 | SiteRulesTrait, |
||
32 | SiteMutatorTrait; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function siteAttributes(): array |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function siteAttributeLabels(): array |
||
53 | |||
54 | /** |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | protected function internalSetSiteId(int $id = null) |
||
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | protected function internalGetSiteId() |
||
73 | |||
74 | /** |
||
75 | * @return SiteModel|null |
||
76 | * @throws \yii\base\InvalidArgumentException |
||
77 | */ |
||
78 | protected function resolveSite() |
||
86 | |||
87 | /** |
||
88 | * @return SiteModel|null |
||
89 | */ |
||
90 | private function resolveSiteFromRelation() |
||
104 | |||
105 | /** |
||
106 | * Get the associated Site |
||
107 | * |
||
108 | * @return ActiveQueryInterface |
||
109 | */ |
||
110 | public function getSiteRecord() |
||
117 | } |
||
118 |