@@ 232-243 (lines=12) @@ | ||
229 | /** |
|
230 | * @param \WebCMS\Entity\Translation $translation |
|
231 | */ |
|
232 | private function translationExists($translation) |
|
233 | { |
|
234 | $exists = $this->em->getRepository('WebCMS\Entity\Translation')->findOneBy(array( |
|
235 | 'hash' => $translation->getHash(), |
|
236 | )); |
|
237 | ||
238 | if (is_object($exists)) { |
|
239 | return $exists; |
|
240 | } else { |
|
241 | return FALSE; |
|
242 | } |
|
243 | } |
|
244 | ||
245 | public function actionUpdateLanguage($id) |
|
246 | { |
@@ 160-171 (lines=12) @@ | ||
157 | $this->forward('default'); |
|
158 | } |
|
159 | ||
160 | private function isRegistered($name) |
|
161 | { |
|
162 | $exists = $this->em->getRepository('WebCMS\Entity\Module')->findOneBy(array( |
|
163 | 'name' => $name, |
|
164 | )); |
|
165 | ||
166 | if (is_object($exists) && $exists->getActive()) { |
|
167 | return TRUE; |
|
168 | } else { |
|
169 | return FALSE; |
|
170 | } |
|
171 | } |
|
172 | ||
173 | public function handleCheckUpdates() |
|
174 | { |