D7 API documentation
What's New
Modules
Introduction
Documentation ideology
ORM queries
Hooks
Handling sites, scopes
Sites on local installation
Landing page fields
Additional Page fields
Special pages
Object handling
addBlock
clearFolderIndex
copy
copyAllBlocks
copyBlock
deleteBlock
downBlock
favoriteBlock
getAreas
getBlocks
getCode
getDomainId
getError
getFolderId
getId
getMeta
getPreview
getPublicUrl
getSiteId
getSiteTitle
getSmnSiteId
getTitle
getXmlId
hideBlock
isActive
markDeletedBlock
move
moveBlock
publication
resolveIdByPublicUrl
resortBlocks
showBlock
touch
unFavoriteBlock
unpublic
upBlock
view
getDomainId
getDomainId( )
Method returns domain ID for site page.
Parameters
No parameters
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { \Bitrix\Landing\Landing::setEditMode(true); $landing = \Bitrix\Landing\Landing::createInstance( 1 ); if ($landing->exist()) { var_dump($landing->getDomainId()); } foreach ($landing->getError()->getErrors() as $error) { echo $error->getCode() . ': '; echo $error->getMessage(); echo "\n"; } }
© «Bitrix24», 2001-2024
Up