• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/base/controller.php
  • Класс: BitrixVoteBaseController
  • Вызов: Controller::resolveAction
protected function resolveAction()
{
	$listOfActions = array_change_key_case($this->listActions(), CASE_LOWER);
	$action = mb_strtolower($this->action);

	if(!isset($listOfActions[$action]))
		throw new NotSupportedException(Loc::getMessage(
			'VOTE_CONTROLLER_ERROR_UNKNOWN_ACTION',
			array('#ACTION#' => $this->sanitizeActionName($action))
		));

	$this->realActionName = $action;
	$description = $this->normalizeActionDescription($action, $listOfActions[$this->realActionName]);

	$this->setAction($description['name'], $description);

	return $this;
}