• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_util.php
  • Класс: ifCWizardUtil
  • Вызов: CWizardUtil::GetNamespaceList
static function GetNamespaceList()
{
	$arNamespaces = array();
	$namespacePath = $_SERVER["DOCUMENT_ROOT"].CWizardUtil::GetRepositoryPath();

	if ($handle = @opendir($namespacePath))
	{
		while (($file = readdir($handle)) !== false)
		{
			if ($file == "." || $file == "..")
				continue;

			if (is_dir($namespacePath."/".$file))
			{
				if (!file_exists($namespacePath."/".$file."/.description.php"))
					$arNamespaces[] = $file;
			}
		}
		@closedir($handle);
	}

	return $arNamespaces;
}