• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/main.php
  • Класс: CAllMain
  • Вызов: CAllMain::GetDirProperty
public function GetDirProperty($PROPERTY_ID, $path=false, $default_value = false)
{
	self::InitPathVars($site, $path);

	if($path === false)
		$path = $this->GetCurDir();
	if($site === false)
		$site = SITE_ID;

	if(!isset($this->arDirProperties[$site][$path]))
		$this->InitDirProperties(array($site, $path));

	$prop_id = mb_strtoupper($PROPERTY_ID);
	if(isset($this->arDirProperties[$site][$path][$prop_id]))
		return $this->arDirProperties[$site][$path][$prop_id];

	return $default_value;
}