Controller::processActionResume

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. Controller
  4. processActionResume
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/attachment/controller.php
  • Класс: BitrixVoteAttachmentController
  • Вызов: Controller::processActionResume
protected function processActionResume()
{
	$attach = $this->attach;
	$userId = $this->getUser()->getId();
	if (!$attach->canEdit($userId))
		throw new AccessDeniedException();
	$attach->resume();
	$this->sendJsonSuccessResponse(array(
		"action" => $this->getAction(),
		"data" => array(
			"attach" => array(
				"ID" => $this->attach["ID"],
				"VOTE_ID" => $this->attach["VOTE_ID"],
				"COUNTER" => $this->attach["COUNTER"],
				"QUESTIONS" => $this->attach["QUESTIONS"]
			)
		)
	));
}

Добавить комментарий