• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/controller.php
  • Класс: BitrixMainEngineController
  • Вызов: Controller::listNameActions
public function listNameActions(): array
{
	$actions = array_keys($this->getConfigurationOfActions());
	$lengthSuffix = mb_strlen(self::METHOD_ACTION_SUFFIX);

	$class = new ReflectionClass($this);
	foreach ($class->getMethods(ReflectionMethod::IS_PUBLIC) as $method)
	{
		$probablySuffix = mb_substr($method->getName(), -$lengthSuffix);
		if ($probablySuffix === self::METHOD_ACTION_SUFFIX)
		{
			$actions[] = mb_strtolower(mb_substr($method->getName(), 0, -$lengthSuffix));
		}
	}

	return array_unique($actions);
}