1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
element.php:15
Bitrix\Lists\Controller\Element\checkPermission
checkPermission(Param $param, $permission)
Определения
element.php:47
Bitrix\Lists\Controller\Entity\getParamFromRequest
getParamFromRequest()
Определения
entity.php:9
Bitrix\Lists\Controller\Lock
Определения
lock.php:7
Bitrix\Lists\Controller\Lock\unLockAction
unLockAction()
Определения
lock.php:23
Bitrix\Lists\Controller\Lock\lockAction
lockAction()
Определения
lock.php:8
Bitrix\Main\getErrors
getErrors()
Определения
errorableimplementation.php:34
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
bitrix
modules
lists
lib
controller
lock.php
Создано системой
1.14.0