См. определение в файле basecontext.php строка 15
◆ addCounter()
| addCounter |
( |
| $day, |
|
|
| $name, |
|
|
| $value = null ) |
Add value to counter. If counter not exists set counter to value. Save to database.
- Аргументы
-
| Date | $day | - counter date |
| string | $name | - counter name |
| int | float | $value | - number to add |
- Исключения
-
| ArgumentTypeException | |
| SystemException | |
Переопределяется в DayContext.
См. определение в файле basecontext.php строка 39
◆ getId()
◆ save()
◆ setAttribute()
| setAttribute |
( |
| $name, |
|
|
| $value = null ) |
Set attribute with value.
- Аргументы
-
| string | $name | - attribute name |
| string | int | float | null | $value | - attribute value |
- Исключения
-
| ArgumentTypeException | |
| SystemException | |
См. определение в файле basecontext.php строка 111
◆ setId()
◆ subCounter()
| subCounter |
( |
| $day, |
|
|
| $name, |
|
|
| $value = 1 ) |
Subtraction from counter value
- Аргументы
-
| Date | $day | |
| string | $name | |
| int | float | $value | |
- Возвращает
- void
См. определение в файле basecontext.php строка 100
◆ $attributes
◆ $id
◆ EMPTY_CONTEXT_ID
| const EMPTY_CONTEXT_ID = 0 |
Объявления и описания членов класса находятся в файле: