@@ 109-120 (lines=12) @@ | ||
106 | * |
|
107 | * @return bool |
|
108 | */ |
|
109 | public function isMultiLanguage($host = null) |
|
110 | { |
|
111 | $host = $this->getRealHost($host); |
|
112 | ||
113 | if (isset($this->hosts[$host])) { |
|
114 | $hostInfo = $this->hosts[$host]; |
|
115 | ||
116 | return ('multi_lang' === $hostInfo['type']); |
|
117 | } |
|
118 | ||
119 | return parent::isMultiLanguage(); |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * @param string|null $host |
|
@@ 127-136 (lines=10) @@ | ||
124 | * |
|
125 | * @return array |
|
126 | */ |
|
127 | public function getFrontendLocales($host = null) |
|
128 | { |
|
129 | $host = $this->getRealHost($host); |
|
130 | ||
131 | if (isset($this->hosts[$host]['locales'])) { |
|
132 | return array_keys($this->hosts[$host]['locales']); |
|
133 | } |
|
134 | ||
135 | return parent::getBackendLocales(); |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * @param string|null $host |
|
@@ 143-152 (lines=10) @@ | ||
140 | * |
|
141 | * @return array |
|
142 | */ |
|
143 | public function getBackendLocales($host = null) |
|
144 | { |
|
145 | $host = $this->getRealHost($host); |
|
146 | ||
147 | if (isset($this->hosts[$host]['locales'])) { |
|
148 | return array_values($this->hosts[$host]['locales']); |
|
149 | } |
|
150 | ||
151 | return parent::getBackendLocales(); |
|
152 | } |
|
153 | ||
154 | /** |
|
155 | * @return bool |