|
| | addCounter ($day, $name, $value=null) |
| | addDayCounter ($name, $value) |
| | subDayCounter ($day, $name, $value) |
| | addCurrencyCounter ($name, $value, $currency) |
| | subCurrencyCounter ($day, $name, $value, $currency) |
| | attachEntityItem ($entity, $item) |
| | setId (?int $id) |
| | getId () |
| | subCounter ($day, $name, $value=1) |
| | setAttribute ($name, $value=null) |
См. определение в файле daycontext.php строка 15
◆ addCounter()
| addCounter |
( |
| $day, |
|
|
| $name, |
|
|
| $value = null ) |
Add value to counter. If counter not exists set counter to value.
- Аргументы
-
| Date | $day | Counter date. |
| string | $name | Counter name. |
| int | float | $value | Number 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 | $name | Counter name. |
| int | float | string | $value | Numeric value. |
| string | $currency | Currency 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 | $name | Counter name. |
| int | float | $value | Number to add. |
- Возвращает
- void
См. определение в файле daycontext.php строка 63
◆ attachEntityItem()
| attachEntityItem |
( |
| $entity, |
|
|
| $item ) |
Attach entity item to context.
- Аргументы
-
| string | $entity | Entity type. |
| string | int | $item | Entity item ID. |
- Исключения
-
- Возвращает
- void
См. определение в файле daycontext.php строка 152
◆ getEntityItemInstance()
| getEntityItemInstance |
( |
| $entity, |
|
|
| $item ) |
|
static |
Get context of attached entity item.
- Аргументы
-
| string | $entity | Entity type. |
| string | int | $item | Entity item ID. |
- Возвращает
- self
См. определение в файле daycontext.php строка 200
◆ getInstance()
Get day context singleton instance.
- Возвращает
- self
См. определение в файле daycontext.php строка 264
◆ getSiteId()
◆ getSiteInstance()
| getSiteInstance |
( |
| $siteId | ) |
|
|
static |
Returns context for given Site
- Аргументы
-
- Возвращает
- self
См. определение в файле daycontext.php строка 230
◆ getVarName()
◆ saveInstance()
◆ 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
Объявления и описания членов класса находятся в файле: