Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
controller.php
1
<?php
2
namespace
Bitrix\Translate\Controller
;
3
4
use
Bitrix\Main
;
5
6
const
STATUS_COMPLETED
=
'COMPLETED'
;
7
const
STATUS_PROGRESS
=
'PROGRESS'
;
8
12
abstract
class
Controller
extends
Main\Engine\Controller
13
{
19
protected
function
processBeforeAction
(Main\Engine\
Action
$action)
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
}
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Engine\Controller\addError
addError(Error $error)
Definition
controller.php:1051
Bitrix\Main\ErrorCollection
Definition
errorcollection.php:14
Bitrix\Main\Error
Definition
error.php:14
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Definition
loader.php:69
Bitrix\Translate\Controller\Action
Definition
action.php:11
Bitrix\Translate\Controller\Controller\hasErrors
hasErrors()
Definition
controller.php:39
Bitrix\Translate\Controller\Controller\processBeforeAction
processBeforeAction(Main\Engine\Action $action)
Definition
controller.php:19
Bitrix\Main
Bitrix\Main\getErrors
getErrors()
Definition
errorableimplementation.php:34
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
Bitrix\Translate\Controller
Definition
action.php:2
Bitrix\Translate\Controller\STATUS_COMPLETED
const STATUS_COMPLETED
Definition
controller.php:6
Bitrix\Translate\Controller\STATUS_PROGRESS
const STATUS_PROGRESS
Definition
controller.php:7
modules
translate
lib
controller
controller.php
Создано системой
1.10.0