Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
greaterthenorequaloperator.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Activity\Operator
;
4
5
use
Bitrix\Bizproc\FieldType
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
GreaterThenOrEqualOperator
extends
BaseOperator
9
{
10
public
static
function
getCode
(): string
11
{
12
return
'>='
;
13
}
14
15
public
static
function
getTitle
(): string
16
{
17
return
Loc::getMessage
(
'BIZPROC_ACTIVITY_CONDITION_OPERATORS_GREATER_THEN_OR_EQUAL_OPERATOR_TITLE'
) ??
''
;
18
}
19
20
protected
function
compare
(
$toCheck
,
$value
): bool
21
{
22
$typeClass = $this->fieldType->getTypeClass();
23
24
return
$typeClass::compareValues(
$toCheck
,
$value
) >= 0;
25
}
26
}
Bitrix\Bizproc\Activity\Operator\BaseOperator
Definition
baseoperator.php:8
Bitrix\Bizproc\Activity\Operator\BaseOperator\$value
$value
Definition
baseoperator.php:10
Bitrix\Bizproc\Activity\Operator\BaseOperator\$toCheck
$toCheck
Definition
baseoperator.php:9
Bitrix\Bizproc\Activity\Operator\GreaterThenOrEqualOperator
Definition
greaterthenorequaloperator.php:9
Bitrix\Bizproc\Activity\Operator\GreaterThenOrEqualOperator\getCode
static getCode()
Definition
greaterthenorequaloperator.php:10
Bitrix\Bizproc\Activity\Operator\GreaterThenOrEqualOperator\compare
compare($toCheck, $value)
Definition
greaterthenorequaloperator.php:20
Bitrix\Bizproc\Activity\Operator\GreaterThenOrEqualOperator\getTitle
static getTitle()
Definition
greaterthenorequaloperator.php:15
Bitrix\Bizproc\FieldType
Definition
fieldtype.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Bizproc\Activity\Operator
Definition
baseoperator.php:3
modules
bizproc
lib
activity
operator
greaterthenorequaloperator.php
Создано системой
1.10.0