1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс DayContext
Граф наследования:DayContext:
BaseContext

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

 addCounter ($day, $name, $value=null)
 addDayCounter ($name, $value)
 subDayCounter ($day, $name, $value)
 addCurrencyCounter ($name, $value, $currency)
 subCurrencyCounter ($day, $name, $value, $currency)
 attachEntityItem ($entity, $item)
Открытые члены унаследованные от BaseContext
 setId (?int $id)
 getId ()
 subCounter ($day, $name, $value=1)
 setAttribute ($name, $value=null)

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

static getEntityItemInstance ($entity, $item)
static getSiteInstance ($siteId)
static getInstance ()
static saveInstance ()
static getVarName ()
static getSiteId ()

Дополнительные унаследованные члены

Поля данных унаследованные от BaseContext
const EMPTY_CONTEXT_ID = 0
Защищенные члены унаследованные от BaseContext
 save ()
Защищенные данные унаследованные от BaseContext
 $id = null
array $attributes = []

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

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

Методы

◆ addCounter()

addCounter ( $day,
$name,
$value = null )

Add value to counter. If counter not exists set counter to value.

Аргументы
Date$dayCounter date.
string$nameCounter name.
int | float$valueNumber to add.
Возвращает
void

Переопределяет метод предка BaseContext.

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

◆ addCurrencyCounter()

addCurrencyCounter ( $name,
$value,
$currency )

Add currency value to counter. If counter not exists set counter to value.

Аргументы
string$nameCounter name.
int | float | string$valueNumeric value.
string$currencyCurrency code (eg: RUB).
Возвращает
void

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

◆ addDayCounter()

addDayCounter ( $name,
$value )

Add value to counter (once a day per person). If counter not exists set counter to value.

Аргументы
string$nameCounter name.
int | float$valueNumber to add.
Возвращает
void

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

◆ attachEntityItem()

attachEntityItem ( $entity,
$item )

Attach entity item to context.

Аргументы
string$entityEntity type.
string | int$itemEntity item ID.
Исключения
ArgumentTypeException
Возвращает
void

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

◆ getEntityItemInstance()

getEntityItemInstance ( $entity,
$item )
static

Get context of attached entity item.

Аргументы
string$entityEntity type.
string | int$itemEntity item ID.
Возвращает
self

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

◆ getInstance()

getInstance ( )
static

Get day context singleton instance.

Возвращает
self

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

◆ getSiteId()

getSiteId ( )
static

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

◆ getSiteInstance()

getSiteInstance ( $siteId)
static

Returns context for given Site

Аргументы
string$siteIdSite ID.
Возвращает
self

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

◆ getVarName()

getVarName ( )
static

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

◆ saveInstance()

saveInstance ( )
static

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

◆ subCurrencyCounter()

subCurrencyCounter ( $day,
$name,
$value,
$currency )

Subtraction currency value from counter

Аргументы
Date$day
string$name
int | float$value
string$currency
Возвращает
void

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

◆ subDayCounter()

subDayCounter ( $day,
$name,
$value )

Subtraction value from counter. If counter not exists does anything.

Аргументы
Date$day
string$name
int | float$value
Возвращает
void

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


Объявления и описания членов класса находятся в файле: