1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
controller.php
См. документацию.
1<?php
2namespace Bitrix\Translate\Controller;
3
4use Bitrix\Main;
5
6const STATUS_COMPLETED = 'COMPLETED';
7const STATUS_PROGRESS = 'PROGRESS';
8
12abstract class Controller extends Main\Engine\Controller
13{
20 {
21 if (parent::processBeforeAction($action))
22 {
23 if (!Main\Loader::includeModule('translate'))
24 {
25 $this->addError(new Main\Error('Translate module not installed'));
26 }
27
28 return \count($this->getErrors()) === 0;
29 }
30
31 return true;
32 }
33
39 public function hasErrors()
40 {
41 if (!$this->errorCollection instanceof Main\ErrorCollection)
42 {
43 return false;
44 }
45
46 return !$this->errorCollection->isEmpty();
47 }
48}
addError(Error $error)
Определения controller.php:1070
Определения error.php:15
static includeModule($moduleName)
Определения loader.php:67
processBeforeAction(Main\Engine\Action $action)
Определения controller.php:19
Определения action.php:3
getErrors()
Определения errorableimplementation.php:34
const STATUS_COMPLETED
Определения controller.php:6
const STATUS_PROGRESS
Определения controller.php:7
$action
Определения file_dialog.php:21