• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/hook.php
  • Класс: BitrixLandingHook
  • Вызов: Hook::getClassesFromDir
static function getClassesFromDir($dir)
{
	$classes = array();

	$path = Manager::getDocRoot() . $dir;
	if (($handle = opendir($path)))
	{
		while ((($entry = readdir($handle)) !== false))
		{
			if ($entry != '.' && $entry != '..')
			{
				$classes[] = mb_strtoupper(pathinfo($entry, PATHINFO_FILENAME));
			}
		}
	}

	return $classes;
}