Требуется разработчик! Поддержка серверов

LANDING: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

Константы модуля landing

КонстантаПроверяется
SMN_SITE_IDManager::getPublicationPath
BX_COMP_MANAGED_CACHEBlock::getRepository
LANDING_IS_REPOBlock::getRepository
LANDING_MUTATOR_MODEBlock::getList
LANDING_DISABLE_CLOUDLanding::getPublicUrl
BX_UTFPublicAction::actionProcessing

Список функций и методов модуля landing

Метод
Help::getHelpUrl($code)
Help::replaceHelpUrl($content)
Error::addError($code, $message= '')
Error::copyError(\Bitrix\Landing\Error $error)
Error::getErrors()
Error::isEmpty()
Error::addFromResult($result)
Embed::getHandlerJS()
Embed::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Embed::getNode(\Bitrix\Landing\Block &$block, $selector)
Link::getHandlerJS()
Link::isAllowedTarget($target)
Link::allowedAttrs()
Link::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Link::getNode(\Bitrix\Landing\Block &$block, $selector)
Map::getHandlerJS()
Map::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Map::getNode(\Bitrix\Landing\Block &$block, $selector)
Component::getHandlerJS()
Component::setPredefineForDynamicProps(array $additionalVals)
Component::saveComponent($content, $code, array $params)
Component::checkPhpCode($code)
Component::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Component::prepareManifest(array $manifest, \Bitrix\Landing\Block $block = null, array $params = array())
Component::transformPropType(array $item, $prop)
Component::preparePropValue($value, $prop)
Component::transformPropValue($value, $prop)
Component::getIblockURL($elementId, $urlType)
Component::getIblockParams($key = false)
Component::getNode(\Bitrix\Landing\Block &$block, $selector)
Text::getHandlerJS()
Text::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Text::getNode(\Bitrix\Landing\Block &$block, $selector)
Icon::getHandlerJS()
Icon::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Icon::getNode(\Bitrix\Landing\Block &$block, $selector)
Img::getHandlerJS()
Img::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Img::getNode(\Bitrix\Landing\Block &$block, $selector)
Stepper::getUpdaterClasses()
Stepper::show()
Stepper::checkAgentActivity($className)
NodeAttributes::loadCurrentStatus()
NodeAttributes::getUpdaterUniqueId()
NodeAttributes::execute(array &$result)
NodeAttributes::finish()
NodeAttributes::clearOptions()
NodeAttributes::getOptionName()
NodeAttributes::collectBlocks()
NodeAttributes::processBlocks()
NodeAttributes::updateBlock(Block $block)
NodeAttributes::finishStep()
NodeAttributes::finishOption()
NodeAttributes::updateSites()
NodeAttributes::disableBlockDelete(Entity\Event $event)
NodeAttributes::disablePublication(\Bitrix\Main\Event $event)
NodeAttributes::removeCustomEvents()
NodeAttributes::updateFormDomainByConnector($event)
NodeAttributes::updateFormDomain($domains = array())
NodeAttributes::log($name, $data = array())
NodeImg::getFileHash($id)
NodeImg::execute(array &$result)
NodeImg::disableBlockDelete(Entity\Event $event)
NodeImg::disablePublication(\Bitrix\Main\Event $event)
TemplateRef::set($id, $type, array $data = array())
TemplateRef::get($id, $type)
TemplateRef::setForSite($id, array $data = array())
TemplateRef::setForLanding($id, array $data = array())
TemplateRef::getForSite($id)
TemplateRef::getForLanding($id)
TemplateRef::landingIsArea($lid)
TemplateRef::deleteArea($lid)
Page::__construct($editMode = false)
Page::getTitle()
Page::getDescription()
Page::isEditMode()
Page::getSort()
Page::isFree()
Page::getCode()
Page::setData(array $data)
Page::getPageFields()
Page::getFields()
Page::enabledInEditMode()
Page::fieldsHash()
Page::dataExist()
Page::active()
Page::getMap()
Page::enabled()
Page::exec()
HeadBlock::getMap()
HeadBlock::getTitle()
HeadBlock::getSort()
HeadBlock::enabledInEditMode()
HeadBlock::enabled()
HeadBlock::exec()
Copyright::getMap()
Copyright::isFree()
Copyright::enabled()
Copyright::exec()
YaCounter::getMap()
YaCounter::enabled()
YaCounter::enabledInEditMode()
YaCounter::exec()
MetaMain::getMap()
MetaMain::getTitle()
MetaMain::getDescription()
MetaMain::enabled()
MetaMain::exec()
View::getItems()
View::getMap()
View::getTitle()
View::enabled()
View::exec()
GMap::getMap()
GMap::enabled()
GMap::exec()
Theme::getMap()
Theme::getColorCodes()
Theme::enabled()
Theme::exec()
Settings::getCodesVsalues()
Settings::getFieldByType($type, $code, $params = array())
Settings::getComponentsParams()
Settings::getCodes($linear = false)
Settings::getMap()
Settings::enabled()
Settings::exec()
Settings::getDataForSite($id = null)
Fonts::getMap()
Fonts::enabled()
Fonts::exec()
MetaOg::getMap()
MetaOg::getAllImages()
MetaOg::getTitle()
MetaOg::enabled()
MetaOg::exec()
Robots::getMap()
Robots::getTitle()
Robots::enabled()
Robots::exec()
Robots::active()
Up::getMap()
Up::enabled()
Up::exec()
MetaRobots::getMap()
MetaRobots::getTitle()
MetaRobots::enabled()
MetaRobots::exec()
GaCounter::getMap()
GaCounter::enabled()
GaCounter::enabledInEditMode()
GaCounter::exec()
Background::getMap()
Background::getTitle()
Background::getDescription()
Background::enabled()
Background::exec()
Favicon::getMap()
Favicon::getTitle()
Favicon::enabled()
Favicon::exec()
B24button::enabledInEditMode()
B24button::getScriptUrl($script)
getButtons()
getMap()
enabled()
exec()
GTM::getMap()
GTM::enabled()
GTM::exec()
Syspage::set($id, $type, $lid = false)
Syspage::get($id)
Syspage::deleteForSite($id)
Syspage::deleteForLanding($id)
Manager::getApplication()
Manager::getUserInstance()
Manager::getCacheManager()
Manager::getUfManager()
Manager::getUserId()
Manager::isAdmin()
Manager::getOption($code, $default = null)
Manager::getDocRoot()
Manager::createPublicationPath($basePath, $siteId = null)
Manager::getSmnSiteDir($siteId)
Manager::getPublicationPath($siteCode = null, $siteId = null, $createPubPath = false)
Manager::setPageClass($marker, $class)
Manager::setPageView($marker, $content)
Manager::getPageView($marker)
Manager::getThemesEntity($tplId, $entityType)
Manager::getThemes($tplId)
Manager::getThemesTypo($tplId)
Manager::getTemplateId()
Manager::setThemeId($themeId)
Manager::setThemeTypoId($themeTypoId)
Manager::getThemeId()
Manager::setTheme()
Manager::setThemeFiles($themeId, $themeEntityId, $tplId)
Manager::savePicture($file, $ext = false, $params = array())
Manager::checkFeature($feature, array $params = array())
Manager::getZone()
Manager::isHttps()
Manager::getHttpHost()
Manager::getUrlFromFile($file)
Manager::isB24()
Manager::isStoreEnabled()
Manager::getRestPath()
Manager::getVersion()
Manager::licenseIsValid()
Manager::sanitize($value, &$bad = false, $splitter = ' ')
Manager::getDeletedLT()
Manager::addPanelButtons()
File::add($fileId, $entityId, $entityType)
File::delete($fileId, $entityId, $entityType)
File::addToSite($id, $fileId)
File::deleteFromSite($id, $fileId = array())
File::addToLanding($lid, $fileId)
File::deleteFromLanding($lid, $fileId = array())
File::addToBlock($blockId, $fileId)
File::replaceInBlock($blockId, $fileId)
File::deleteFromBlock($blockId, $fileId = array())
File::getFilesFromBlockContent($blockId, $content)
File::copyEntityFiles($from, $to, $entityType)
File::copyBlockFiles($from, $to)
Block::__construct($id, $data = array())
Block::fillLanding(\Bitrix\Landing\Landing $landing, $limit = 0, array $params = array())
Block::cloneForEdit(\Bitrix\Landing\Landing $landing)
Block::publicationBlocks(\Bitrix\Landing\Landing $landing)
Block::getLandingIdByBlockId($id)
Block::getLandingRowByBlockId($id, array $select = array('ID'))
Block::getRowByBlockId($id, array $select = array('ID'))
Block::getContentFromRepository($code, $namespace = null)
Block::createFromRepository(\Bitrix\Landing\Landing $landing, $code, $data = array())
Block::isNewBlock($block)
Block::clearRepositoryCache()
Block::getRepository($section = null, $withManifest = false)
Block::getLastUsed($count = 10)
Block::getStyle()
Block::getBlockContent($id, $editMode = false, array $params = array())
Block::getAnchor($id)
Block::getBlockNamespace($code)
Block::getBlockPath($code, $namespace = null)
Block::exist()
Block::getId()
Block::getLandingId()
Block::getSiteId()
Block::getCode()
Block::getLocalAnchor()
Block::getContent($lid, $block, $editMode = false, $params = array())
Block::isActive()
Block::isPublic()
Block::getAccess()
Block::setActive($active)
Block::getRepoId()
Block::getSite()
Block::getPreview()
Block::getError()
Block::getTypeClass($type)
Block::getManifest($lid, $block, $params = array())
Block::getManifestFile($code)
Block::getAsset($type = null)
Block::getCSS()
Block::getJS()
Block::getExt()
Block::view($edit = false, \Bitrix\Landing\Landing $landing = null, array $params = array())
Block::saveContent($content)
Block::save()
Block::changeLanding($lid)
Block::unlink()
Block::markDeleted($mark)
Block::setSort($sort)
Block::setAnchor($anchor)
Block::saveSort($sort)
Block::getSort()
Block::getDom($clear = false)
Block::getMeta()
Block::adjustCards($selector, $count, &$changed = false)
Block::cloneCard($lid, $block, $selector)
Block::setCardContent($selector, $position, $content)
Block::getCardContent($selector, $position)
Block::getCardCount($selector)
Block::removeCard($lid, $block, $selector)
Block::changeNodeName($lid, $block, $data)
Block::updateNodes($lid, $block, $data, $additional = array())
Block::updateCards($lid, $block, $data)
Block::removeStyle(\Bitrix\Main\Web\DOM\Node $node, array $styleToRemove)
Block::setClasses($data)
Block::setAttributes($data)
Block::replaceMetaMarkers($content)
Block::deleteByCode($code)
Block::parentDelete($id)
Block::add($fields)
Block::update($id, $fields = array())
Block::delete($id)
Block::getList($lid, $params = array())
Site::getPublicUrl($id, $full = true)
Site::getHooks($id)
Site::getAdditionalFields($id)
Site::saveAdditionalFields($id, array $data)
Site::getTypes()
Site::getDefaultType()
Site::delete($id)
Site::markDelete($id, $mark = true)
Site::markUnDelete($id)
Site::fullExport($id, $params = array())
Site::getPublicHash($id, $domain = null)
Manifest::add($fields)
Manifest::getByCode($code, $full = false)
Landing::__construct()
Landing::setEditMode($mode = true)
Landing::getEditMode()
Landing::setPreviewMode($mode = true)
Landing::getPreviewMode()
Landing::checkDeleted()
Landing::disableCheckDeleted()
Landing::enableCheckDeleted()
Landing::disableUpdate()
Landing::enableUpdate()
Landing::createInstance($id, array $params = array())
Landing::markDelete($lid, $mark = true)
Landing::markUnDelete($lid)
Landing::delete($lid)
Landing::getHooks($id)
Landing::getAdditionalFields($lid)
Landing::saveAdditionalFields($id, array $data)
Landing::setVariables(array $vars)
Landing::getVariables()
Landing::getPreview($lid)
Landing::getPublicUrl($lid)
Landing::view(array $params = array())
Landing::getAreas()
Landing::applyTemplate($content = null)
Landing::parseLocalUrl($content)
Landing::execHooks()
Landing::exist()
Landing::isActive()
Landing::getId()
Landing::getXmlId()
Landing::getTitle()
Landing::getMeta()
Landing::getSiteId()
Landing::getSmnSiteId()
Landing::getBlocks()
Landing::addBlockToCollection(\Bitrix\Landing\Block $block)
Landing::getError()
Landing::touch()
Landing::publication($lid)
Landing::unpublic($lid)
Landing::addBlock($lid, $fields)
Landing::deleteBlock($lid, $block)
Landing::markDeletedBlock($lid, $block, $mark = true)
Landing::transferBlock($id, $lid)
Landing::resortBlocks()
Landing::sortBlock($id, $action)
Landing::upBlock($lid, $block)
Landing::downBlock($lid, $block)
Landing::activateBlock($id, $action)
Landing::showBlock($lid, $block)
Landing::hideBlock($lid, $block)
Landing::changeParentOfBlock($lid, $block, $params)
Landing::copyBlock($lid, $block, $params = array())
Landing::copyAllBlocks($lid)
Landing::moveBlock($lid, $block, $params = array())
Landing::update($lid, $fields)
Hook::getClassesFromDir($dir)
Hook::getData($id, $type, $asIs = false)
Hook::getList($id, $type, array $data = array())
Hook::setEditMode()
Hook::getForSite($id)
Hook::getForLanding($id)
Hook::copy($from, $to, $type)
Hook::copySite($from, $to)
Hook::copyLanding($from, $to)
Hook::prepareData(array $data)
Hook::saveData($id, $type, array $data)
Hook::saveForSite($id, array $data)
Hook::saveForLanding($id, array $data)
Hook::deleteData($id, $type)
Hook::deleteForSite($id)
Hook::deleteForLanding($id)
Node::getHandlerJS()
Node::saveNode(\Bitrix\Landing\Block &$block, $selector, array $data)
Node::getNode(\Bitrix\Landing\Block &$block, $selector)
Domain::getDomainName()
Domain::createDefault()
Domain::getCurrentId()
Domain::getProtocolList()
Site24::updateDomain($domain, $newName, $url)
Site24::activateDomain($domain, $active = 'Y')
Site24::addDomain($domain, $url, $active = 'Y', $type = "site")
Site24::isDomainExists($domain)
Site24::deleteDomain($domain)
Site24::addRandomDomain($url, $type = "site")
Site24::Execute($operation, $params = array())
Repo::add($fields)
Repo::update($id, $fields = array())
Repo::delete($id)
Repo::getRepository()
Repo::getBlock($id)
Repo::getById($id)
Repo::deleteByAppCode($code)
Repo::getAppInfo($code)
Repo::getAppByCode($code)
PublicAction::getNamespacePublicClasses()
PublicAction::getMethodInfo($action, $data = array())
PublicAction::actionProcessing($action, $data, $isRest = false)
PublicAction::ajaxProcessing()
PublicAction::restBase()
PublicAction::restGateway($fields, $t, $server)
PublicAction::restApplication()
PublicAction::restApplicationDelete($app)
Demos::deleteByAppCode($code)
Placement::deleteByAppId($id)
Field::__construct($code, array $params = array())
Field::setValue($value)
Field::getValue()
Field::getHelpValue()
Field::setCode($code)
Field::getCode()
Field::getLabel()
Field::getType()
Field::__toString()
Field::viewForm(array $params = array())
PublicActionResult::__construct()
PublicActionResult::isSuccess()
PublicActionResult::setError(\Bitrix\Landing\Error $error)
PublicActionResult::getError()
PublicActionResult::setResult($result)
PublicActionResult::getResult()
Checkbox::viewForm(array $params = array())
Checkbox::__toString()
Text::__construct($code, array $params = array())
Text::viewForm(array $params = array())
Text::setValue($value)
Text::__toString()
Hidden::viewForm(array $params = array())
Select::__construct($code, array $params = array())
Select::isMulti()
Select::viewForm(array $params = array())
Select::__toString()
Select::getName($nameFormat)
Select::getOptions()
Textarea::viewForm(array $params = array())
TemplateRefTable::getTableName()
TemplateRefTable::getMap()
SyspageTable::getTableName()
SyspageTable::getMap()
TemplateTable::getTableName()
TemplateTable::getMap()
FileTable::getTableName()
FileTable::getMap()
BlockTable::getTableName()
BlockTable::getMap()
BlockTable::onAfterDelete(Entity\Event $event)
SiteTable::getTableName()
SiteTable::getMap()
SiteTable::getSiteController()
SiteTable::checkUniqueInDomain($code, $currentId, $domainId)
SiteTable::isB24Domain($domainName)
SiteTable::customizeControllerError(SystemException $ex)
SiteTable::checkBitrixUse($domainName)
SiteTable::prepareChange(Entity\Event $event, $actionType)
SiteTable::OnBeforeAdd(Entity\Event $event)
SiteTable::OnBeforeUpdate(Entity\Event $event)
SiteTable::saveAdditionalFields(Entity\Event $event)
SiteTable::getList(array $params = array())
SiteTable::OnAfterAdd(Entity\Event $event)
SiteTable::OnAfterUpdate(Entity\Event $event)
SiteTable::OnBeforeDelete(Entity\Event $event)
SiteTable::onAfterDelete(Entity\Event $event)
ManifestTable::getTableName()
ManifestTable::getMap()
LandingTable::getTableName()
LandingTable::getMap()
LandingTable::setAccessFilter($params)
LandingTable::prepareChange(Entity\Event $event, $actionType)
LandingTable::getList(array $params = array())
LandingTable::OnBeforeAdd(Entity\Event $event)
LandingTable::OnBeforeUpdate(Entity\Event $event)
LandingTable::OnBeforeDelete(Entity\Event $event)
LandingTable::saveAdditionalFields(Entity\Event $event)
LandingTable::OnAfterAdd(Entity\Event $event)
LandingTable::OnAfterUpdate(Entity\Event $event)
LandingTable::OnAfterDelete(Entity\Event $event)
DomainTable::getTableName()
DomainTable::getMap()
DomainTable::getProtocolList()
DomainTable::isValidProtocol($protocol)
DomainTable::prepareChange(Entity\Event $event)
DomainTable::OnBeforeAdd(Entity\Event $event)
DomainTable::OnBeforeUpdate(Entity\Event $event)
DomainTable::OnBeforeDelete(Entity\Event $event)
RepoTable::getTableName()
RepoTable::getMap()
DemosTable::getTableName()
DemosTable::getMap()
PlacementTable::getTableName()
PlacementTable::getMap()
HookDataTable::getTableName()
HookDataTable::getMap()
BaseTable::getCallingClass()
BaseTable::getMap()
BaseTable::add($fields)
BaseTable::update($id, $fields = array())
BaseTable::delete($id)
BaseTable::getList($params = array())
BaseTable::callback($code, $callback)
Map::prepareManifest(array $manifest, \Bitrix\Landing\Block $block = null, array $params = array())
Map::addVisualSettings($manifest)
Menu::prepareManifest(array $manifest, \Bitrix\Landing\Block $block = NULL, array $params = array())
Menu::getCatalogMenu($siteId, $count)
Menu::getPersonalMenu()
Form::isB24Connector()
Form::getForms()
Form::prepareForms($forms)
Form::getAttrs()
Form::prepareManifest(array $manifest, \Bitrix\Landing\Block $block = NULL, array $params = array())
Form::getOriginalFormDomain()
LandingBlock::__construct(array $params = array())
LandingBlock::executeBlock()
Cloud::getRepository()
Cloud::getDemoSiteList($type)
Cloud::getDemoPageList($type)
Cloud::getUrlPreview($code, $type)
Template::getList($params = array())
Template::refProcess($id, $type, $method, $data = array())
Template::setSiteRef($id, $data = array())
Template::setLandingRef($id, $data = array())
Template::getSiteRef($id)
Template::getLandingRef($id)
Block::cardAction($action, $lid, $block, $selector, array $params = array())
Block::addCard($lid, $block, $selector, $content)
Block::changeAnchor($lid, $block, $data)
Block::updateAttributes($lid, $block, $data, $method)
Block::updateStyles($lid, $block, $data)
Block::updateAttrs($lid, $block, $data)
Block::updateContent($lid, $block, $content)
Block::getById($block, $params = array())
Block::uploadFile($block, $picture, $ext = false, $params = array())
Site::clearDisallowFields($fields)
Site::getList($params = array())
Site::add($fields)
Site::update($id, $fields)
Site::publication($id, $mark = true)
Site::unpublic($id)
Site::uploadFile($id, $picture, $ext = false, $params = array())
Landing::clearDisallowFields($fields)
Landing::markUnDeletedBlock($lid, $block)
Landing::sort($lid, $block, $action)
Landing::activate($lid, $block, $action)
Landing::removeEntities($lid, $data)
Landing::getList($params = array())
Landing::add($fields)
Landing::copy($lid, $toSiteId = false)
Landing::uploadFile($lid, $picture, $ext = false, $params = array())
Landing::updateHead($lid, $content)
Domain::getList($params = array())
Domain::add($fields)
Domain::update($id, $fields)
Domain::delete($id)
Domain::punycode($domain)
Utils::getUrlPreview($url)
Utils::catalogSearch($query = null, $type = self::TYPE_CATALOG_ALL, $iblock = null, $siteId = null)
Utils::makeCatalogEntityNavChain($sectionId, &$chain)
Utils::getCatalogEntity($entityId, $entityType)
Utils::getCatalogElement($elementId)
Utils::getCatalogSection($sectionId)
Utils::getIblockURL($elementId, $urlType)
Utils::saveSettings(array $settings)
Repo::checkContent($content, $splitter = '#SANITIZE#')
Repo::register($code, $fields, $manifest = array())
Repo::unregister($code)
Repo::bind($fields)
Repo::unbind($code)
Repo::getList($params = array())
Demos::getFilesList($type, $page = false)
Demos::getSiteList($type)
Demos::getPageList($type)
Demos::getUrlPreview($code, $type)
Demos::register($data = array())
Demos::unregister($code)
Demos::getList($params = array())
Landing::doInstall()
Landing::doUninstall()
Landing::installDB()
Landing::isB24()
Landing::isB24Connector()
Landing::setSiteTemplates($install = true)
Landing::installTemplates()
Landing::installFiles()
Landing::uninstallDB($arParams = array())
Landing::uninstallFiles()
Landing::getModuleRightList()