Documentation

GetDirPropertyList

array
CMain::GetDirPropertyList(
 string path = false
)

The method returns an array of the section properties, collected recursively up to the site root. Non-static method.

Parameters

ParameterDescription
path Path to the folder. In case of multiple sites, if the DOCUMENT_ROOT (specified in the field "Path to the web server root folder" in the site settings, System settings -> Sites -> the site) of the site of interest is different, pass an array in the following format::
array("site ID", "path")
Optional parameter; false by default, which means the current folder.

See Also

  • CMain::ShowProperty
  • CMain::GetProperty
  • CMain::GetPageProperty
  • CMain::GetDirProperty
  • CMain::GetPagePropertyList
  • CMain::SetPageProperty
  • CMain::SetDirProperty

    Example of use

    <?
    $props = $APPLICATION->GetDirPropertyList();
    foreach($props as $key=>$val)
    	echo '<meta name="'.$key.'" content="'.htmlspecialchars($val).'">';
    ?>


    © «Bitrix24», 2001-2022
    Up