Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
lock.php
1
<?php
2
namespace
Bitrix\Lists\Controller
;
3
4
use
Bitrix\Lists\Security\ElementRight
;
5
6
class
Lock
extends
Element
7
{
8
public
function
lockAction
()
9
{
10
$param = $this->
getParamFromRequest
();
11
$params = $param->getParams();
12
13
$this->
checkPermission
($param, ElementRight::EDIT);
14
if
($this->
getErrors
())
15
{
16
$this->
addErrors
($this->
getErrors
());
17
return
null
;
18
}
19
20
\CIBlockElement::WF_Lock($params[
"ELEMENT_ID"
],
false
);
21
}
22
23
public
function
unLockAction
()
24
{
25
$param = $this->
getParamFromRequest
();
26
$params = $param->getParams();
27
28
$this->
checkPermission
($param, ElementRight::EDIT);
29
if
($this->
getErrors
())
30
{
31
$this->
addErrors
($this->
getErrors
());
32
return
null
;
33
}
34
35
\CIBlockElement::WF_UnLock($params[
"ELEMENT_ID"
],
false
);
36
}
37
}
Bitrix\Lists\Controller\Element
Definition
element.php:15
Bitrix\Lists\Controller\Element\checkPermission
checkPermission(Param $param, $permission)
Definition
element.php:47
Bitrix\Lists\Controller\Entity\getParamFromRequest
getParamFromRequest()
Definition
entity.php:9
Bitrix\Lists\Controller\Lock
Definition
lock.php:7
Bitrix\Lists\Controller\Lock\unLockAction
unLockAction()
Definition
lock.php:23
Bitrix\Lists\Controller\Lock\lockAction
lockAction()
Definition
lock.php:8
Bitrix\Lists\Security\ElementRight
Definition
elementright.php:11
Bitrix\Main\Engine\Controller\addErrors
addErrors(array $errors)
Definition
controller.php:1064
Bitrix\Main\Engine\Controller\getErrors
getErrors()
Definition
controller.php:1075
Bitrix\Lists\Controller
Definition
element.php:2
modules
lists
lib
controller
lock.php
Создано системой
1.10.0