method
public
abstract
CounterState::updateState()
Сигнатура
public abstract updateState(array<string|int, mixed> $rawCounters[, array<string|int, mixed> $types = [] ][, array<string|int, mixed> $taskIds = [] ]) : void
Параметры
$rawCounters
array<string|int, mixed>
$types
array<string|int, mixed>
= []
$taskIds
array<string|int, mixed>
= []
Возвращаемое значение
void
Как применяется в CounterState
CounterState::updateState() — метод класса \Bitrix\Tasks\Internals\Counter\CounterState модуля «Задачи».
Метод объекта: сначала нужен экземпляр CounterState.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Counter\CounterState;
Loader::includeModule('tasks');
/** @var CounterState $object */
$rawCounters = [];
$object->updateState($rawCounters);Другие методы CounterState
current()getClearedDate()getLoader()getRawCounters()getSize()getValue()init()isCounted()key()next()resetCache()rewind()
updateState() есть и у других классов модуля «Задачи»: InDatabase, InMemory.
Исходный файл: source/tasks/lib/internals/counter/counterstate.php:48

