Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс DelayInterval

Открытые члены

 __construct (array $params=null)
 
 getType ()
 
 setType ($type)
 
 getValue ()
 
 setValue ($value)
 
 getValueType ()
 
 setValueType ($valueType)
 
 getBasis ()
 
 setBasis ($basis)
 
 isWorkTime ()
 
 setWorkTime ($flag)
 
 isWaitWorkDay ()
 
 setWaitWorkDay (bool $flag)
 
 setInTime (?array $inTime)
 
 getInTime ()
 
 toArray ()
 
 toActivityProperties (array $documentType)
 
 isNow ()
 

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

static createFromActivityProperties (array $properties)
 

Открытые атрибуты

const TYPE_BEFORE = 'before'
 
const TYPE_AFTER = 'after'
 
const TYPE_IN = 'in'
 

Защищенные данные

 $type = 'after'
 
 $value
 
 $valueType
 
 $basis
 
 $workTime = false
 
bool $waitWorkDay = false
 
array $inTime = null
 

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

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

Конструктор(ы)

◆ __construct()

__construct ( array  $params = null)

DelayInterval constructor.

Аргументы
array | null$paramsInitial parameters.

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

Методы

◆ createFromActivityProperties()

static createFromActivityProperties ( array  $properties)
static
Аргументы
array$propertiesActivity properties.
Возвращает
DelayInterval

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

◆ getBasis()

getBasis ( )
Возвращает
mixed

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

◆ getInTime()

getInTime ( )

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

◆ getType()

getType ( )
Возвращает
mixed

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

◆ getValue()

getValue ( )
Возвращает
mixed

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

◆ getValueType()

getValueType ( )
Возвращает
mixed

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

◆ isNow()

isNow ( )

Checks if interval equals to Now.

Возвращает
bool

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

◆ isWaitWorkDay()

isWaitWorkDay ( )

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

◆ isWorkTime()

isWorkTime ( )
Возвращает
mixed

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

◆ setBasis()

setBasis (   $basis)
Аргументы
mixed$basisDelay interval basis (date/time field etc.).
Возвращает
DelayInterval

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

◆ setInTime()

setInTime ( ?array  $inTime)
Возвращает
$this

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

◆ setType()

setType (   $type)
Аргументы
mixed$typeInterval type (before, after, in time).
Возвращает
DelayInterval

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

◆ setValue()

setValue (   $value)
Аргументы
int$valueDelay interval value.
Возвращает
DelayInterval

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

◆ setValueType()

setValueType (   $valueType)
Аргументы
string$valueTypeDelay interval value type.
Возвращает
DelayInterval

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

◆ setWaitWorkDay()

setWaitWorkDay ( bool  $flag)
Возвращает
$this

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

◆ setWorkTime()

setWorkTime (   $flag)
Аргументы
bool$flagTrue of false.
Возвращает
$this

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

◆ toActivityProperties()

toActivityProperties ( array  $documentType)

Converts instance to activity properties array.

Аргументы
array$documentTypeDocument type.
Возвращает
array

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

◆ toArray()

toArray ( )

Converts instance to array.

Возвращает
array

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

Данные класса

◆ $basis

$basis
protected

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

◆ $inTime

array $inTime = null
protected

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

◆ $type

$type = 'after'
protected

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

◆ $value

$value
protected

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

◆ $valueType

$valueType
protected

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

◆ $waitWorkDay

bool $waitWorkDay = false
protected

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

◆ $workTime

$workTime = false
protected

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

◆ TYPE_AFTER

const TYPE_AFTER = 'after'

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

◆ TYPE_BEFORE

const TYPE_BEFORE = 'before'

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

◆ TYPE_IN

const TYPE_IN = 'in'

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