• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/replicator/task/fromtemplate.php
  • Класс: BitrixTasksUtilReplicatorTaskFromTemplate
  • Вызов: FromTemplate::incrementReplicationCount
static function incrementReplicationCount($templateId, &$replicationCount)
{
	// todo: replace the following with $template->incrementReplicationCount()->save() when ready

	$template = ItemTaskTemplate::getInstance($templateId, static::getEffectiveUser());
	$templateInst = new CTaskTemplates();
	$templateInst->update($templateId, array(
		'TPARAM_REPLICATION_COUNT' => intval($template['TPARAM_REPLICATION_COUNT']) + 1
	));

	$replicationCount++;
}