getFolder
Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and when you want to learn more about API.
Site::getFolder( $folderId, $accessLevel );
Method gets folder in site.
Parameters
Parameters | Description | Available from version |
---|---|---|
$folderId | Folder ID in site.
Attention: Requires $accessLevel access permissions in folder site. | |
$accessLevel | Access permission level. Equals read be default. Possible values:
|
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { $folder = \Bitrix\Landing\Site::getFolder(147); print_r($folder); }
© «Bitrix24», 2001-2024