1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Assert

Открытые статические члены

static expectInteger ($arg, $argName='', $customMsg='')
static expectIntegerPositive ($arg, $argName='', $customMsg='')
static expectIntegerNonNegative ($arg, $argName='', $customMsg='')
static expectStringNotNull ($arg, $argName='', $customMsg='')
static expectArray ($arg, $argName='', $customMsg='')
static expectNotEmptyArray ($arg, $argName='', $customMsg='')
static expectArrayOfUniqueIntegerNotNull ($arg, $argName='', $customMsg='')
static expectArrayOfUniqueStringNotNull ($arg, $argName='', $customMsg='')
static expectEnumerationMember ($arg, $enum=array(), $argName='', $customMsg='')
static castTrimLC ($value)
static announceNotImplemented ($msg='')
static announceNotSupported ($msg='')

Подробное описание

См. определение в файле assert.php строка 16

Методы

◆ announceNotImplemented()

announceNotImplemented ( $msg = '')
staticfinal

Method announces that method or action is not implemented

Аргументы
string$msgmessage to be shown
Исключения

Bitrix\Main\NotImplementedException

См. определение в файле assert.php строка 243

◆ announceNotSupported()

announceNotSupported ( $msg = '')
staticfinal

Method announces that method or action is not supported

Аргументы
string$msgmessage to be shown
Исключения

Bitrix\Main\NotImplementedException

См. определение в файле assert.php строка 255

◆ castTrimLC()

castTrimLC ( $value)
static

См. определение в файле assert.php строка 229

◆ expectArray()

expectArray ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is an array

Аргументы
mixed[]$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
mixed[] value being checked

См. определение в файле assert.php строка 110

◆ expectArrayOfUniqueIntegerNotNull()

expectArrayOfUniqueIntegerNotNull ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a non-empty array of unique positive integers (or somehow can be casted to it)

Аргументы
mixed[]$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
integer[] checked and casted value

См. определение в файле assert.php строка 148

◆ expectArrayOfUniqueStringNotNull()

expectArrayOfUniqueStringNotNull ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a non-empty array of unique non-zero-length strings (or somehow can be casted to it)

Аргументы
mixed[]$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
string[] checked and casted value

См. определение в файле assert.php строка 178

◆ expectEnumerationMember()

expectEnumerationMember ( $arg,
$enum = array(),
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument belongs to a set of elements

Аргументы
mixed[]$argargument to check
mixed[]$enumenumeration to check argument belong to
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
mixed[] checked and casted value

См. определение в файле assert.php строка 209

◆ expectInteger()

expectInteger ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is an integer value, or can be casted to it

Аргументы
mixed$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
integer checked and casted value

См. определение в файле assert.php строка 31

◆ expectIntegerNonNegative()

expectIntegerNonNegative ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a non-negative integer value, or can be casted to it

Аргументы
mixed$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
integer checked and casted value

См. определение в файле assert.php строка 71

◆ expectIntegerPositive()

expectIntegerPositive ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a positive integer value, or can be casted to it

Аргументы
mixed$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
integer checked and casted value

См. определение в файле assert.php строка 51

◆ expectNotEmptyArray()

expectNotEmptyArray ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a non-empty array

Аргументы
mixed[]$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
mixed[] value being checked

См. определение в файле assert.php строка 129

◆ expectStringNotNull()

expectStringNotNull ( $arg,
$argName = '',
$customMsg = '' )
staticfinal

Method checks if the given argument is a non-zero-length string value, or can be casted to it

Аргументы
mixed$argargument to check
string$argNameargument name to figure in a error message
string$customMsgcustom message to be shown instead of a standard one
Исключения

Bitrix\Main\ArgumentException

Возвращает
string checked and casted value

См. определение в файле assert.php строка 91


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sale/lib/location/util/assert.php