ping
Site::ping( $id );
Checks site availability, if it exists and checks current user access permissions. Returns true or false depending on the result.
Parameters
Class | Description | Available from version |
---|---|---|
id | Site ID. |
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { if (\Bitrix\Landing\Site::ping($siteId)) { echo 'Site and access permissions are available'; } }
© «Bitrix24», 2001-2024
Up