QuestionTypes::getFullList

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. QuestionTypes
  4. getFullList
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/questiontypes.php
  • Класс: BitrixVoteQuestionTypes
  • Вызов: QuestionTypes::getFullList
static function getFullList()
{
	$res = (new ReflectionClass(__CLASS__))->getConstants();
	$result = array();
	foreach ($res as $code => $id)
	{
		$result[] = array("ID" => $id, "CODE" => $code, "TITLE" => Loc::getMessage("VOTE_QUESTION_TYPE_".$code));
	}
	return $result;
}

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