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

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


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

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

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

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

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

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

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

События модуля mobileapp

СобытиеВызывается
OnBeforeAdminMobilePushOptsLoadCAdminMobilePush::getOptions
OnAdminMobileGetPushSettingsCAdminMobilePush::OnAdminMobileGetPushSettings
OnMobileInitMobile::onMobileInit

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

КонстантаПроверяется
BX_UTFMobile::ConvertFromUtf
MOBILE_INIT_EVENT_SKIPMobile::onMobileInit

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

Метод
CMobileAppPullSchema::OnGetDependentModule()
CAdminMobilePush::addData($branchName, $arData)
CAdminMobilePush::getData($path = "")
CAdminMobilePush::getOptions($path = "")
CAdminMobilePush::saveOptions($path = "", $arOpts)
CAdminMobilePush::OnAdminMobileGetPushSettings()
CAdminMobileFilter::getFields($filterId)
CAdminMobileFilter::setFields($filterId, $arFields)
CAdminMobileFilter::getNonemptyFields($filterId, $arFieldsParams = false)
CAdminMobileFilter::getHtml($arFields)
CAdminMobileMenu::addItem($arItem)
CAdminMobileMenu::buildMenu($arParams)
CAdminMobileMenu::getDefaultUrl($arParams)
CAdminMobileDetailTmpl::getTitleHtml($title)
CAdminMobileDetailTmpl::getUpperButtonsHtml($arButtons)
CAdminMobileDetailTmpl::getSectionHtml($arSection)
CAdminMobileDetailTmpl::getHtml($arAdminDetail)
CAdminMobileDetail::setTitle($strTitle)
CAdminMobileDetail::addUpperButton($arButton)
CAdminMobileDetail::addSection($arSection)
CAdminMobileDetail::getHtml()
CAdminMobileDetail::getItem()
CAdminMobileInterface::getCheckBoxesHtml($arCB, $strTitle = '', $arChecked = array(), $arParams = array())
CMobileLazyLoad::getBase64Stub()
CAdminMobileEdit::getCustomAttribs($arField)
CAdminMobileEdit::getCommonAttribs($arField)
CAdminMobileEdit::getFieldHtml($arField)
Manager::createApp($appCode = "", $data = array(), $initConfig = array())
Manager::getTemplateList()
Manager::removeApp($appCode)
Manager::registerFileInApp(&$fileArray, $appCode)
Manager::unregisterFileInApp($fileId, $appCode)
Manager::addConfig($appCode = "", $platform, $config = array())
Manager::removeConfig($appCode = "", $platform = array())
Manager::updateConfig($appCode = "", $platform = "", $config = array())
Manager::getConfigJSON($appCode, $platform = false)
Manager::copyFromTemplate($folder, $appCode, $useOffline = false, $templateCode = "simple")
Manager::bindTemplate($templateId, $folder, $createNew)
Manager::getAppFiles($appCode)
Manager::nameSpaceToArray($namespace, $value)
Manager::addVirtualParams(&$structuredConfig, $platform)
Tools::getMobileJSCorePath()
Tools::generateMobileJSFile()
Tools::getArrayFilesHash($fileList = array())
ConfigMap::__construct()
ConfigMap::createMap()
ConfigMap::getMap()
ConfigMap::getDescriptionConfig()
ConfigMap::getParamDescription($name, $type)
ConfigMap::getParamsByGroups()
ConfigMap::getParamsByType($paramType)
ConfigMap::getImageParams()
ConfigMap::getGroupParams()
ConfigMap::isGroup($paramName)
ConfigMap::getGroupByParam($paramName)
ConfigMap::getLangMessages()
ConfigMap::has($paramName)
ConfigMap::getValueList($paramName)
ConfigMap::getLimits($paramName)
ParameterType::getDesc($type, $paramName = false)
ParameterType::getStringType($intType)
ConfigTable::getFilePath()
ConfigTable::getTableName()
ConfigTable::getMap()
ConfigTable::validateAppCode()
ConfigTable::validatePlatform()
ConfigTable::getSupportedPlatforms()
ConfigTable::checkFields(Result $result, $primary, array $data)
ConfigTable::isExists($appCode, $platform)
Mobile::__construct()
Mobile::setWebRtcSupport($isWebRtcSupported)
Mobile::setBXScriptSupported($isBXScriptSupported)
Mobile::getDevice()
Mobile::getPixelRatio()
Mobile::setPixelRatio($pixelRatio)
Mobile::isAppBackground()
Mobile::Init()
Mobile::_Init()
Mobile::getInstance()
Mobile::initScripts()
Mobile::getBXScriptSupported()
Mobile::getViewPort($width = "")
Mobile::getDeviceWidth()
Mobile::setDeviceWidth($deviceWidth)
Mobile::getIPadViewPort($width = 320)
Mobile::getScreenCategory()
Mobile::setScreenCategory($screenCategory)
Mobile::getLargeScreenViewPort()
Mobile::getTargetDpi()
Mobile::getIniScale()
Mobile::setIniScale($iniScale)
Mobile::getMaxScale()
Mobile::setMaxScale($maxScale)
Mobile::getMinScale()
Mobile::setMinScale($minScale)
Mobile::getWidth()
Mobile::setWidth($width)
Mobile::getPlatform()
Mobile::getUserScalable()
Mobile::setUserScalable($userScalable)
Mobile::PrepareStrToJson($s = '')
Mobile::ConvertFromUtf($s = '')
Mobile::onMobileInit()
Mobile::getApiVersion()
Mobile::getPgVersion()
Mobile::getSystemVersion()
Mobile::isWebRtcSupported()
Mobile::getViewPortPortrait()
Mobile::getViewPortLandscape()
Mobile::getDeviceHeight()
Mobile::setDeviceHeight($deviceHeight)
Mobile::getLargeScreenSupport()
Mobile::setLargeScreenSupport($largeScreenSupport)
Mobile::getScale()
Mobile::setScale($scale)
Mobile::isLarge()
Mobile::__clone()
AppResource::getMap()
AppResource::get($platform_id)
AppResource::getIconsSet($platform_id)
AppResource::getImagesSet($platform_id)
AppResource::getAdditionalSet($platform_id)
Lists::addItem($categoryCode = "", $item = array())
Lists::addItems($categoryCode = "", $items = array())
Lists::addSection($categoryCode = "", $sectionCode, $sectionName)
Lists::setCategoryName($categoryCode = "", $name = "")
Lists::createCategory($categoryCode)
Lists::showJSON()
AppTable::getFilePath()
AppTable::getTableName()
AppTable::getMap()
AppTable::validateCode()
AppTable::validateShortName()
AppTable::validateName()
AppTable::validateFolder()
AppTable::isAppExists($code)
AppTable::onAfterDelete(Event $event)
AppTable::checkFields(Result $result, $primary, array $data)
AppTable::getSupportedPlatforms()
Utils::extractEntityDescription($entityIdentifier, $defaultNamespace = "bitrix")
Utils::jsonEncode($string, $options = JSON_HEX_TAG | JSON_HEX_AMP | JSON_PRETTY_PRINT | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE)
Manager::getInstance()
Manager::__construct()
Manager::fetchComponents()
Manager::getExtensionPath($ext)
Manager::getExtensionResourceList($ext)
Manager::getComponentVersion($componentName)
Manager::getComponentPath($componentName)
Manager::extractNamespace($entityPath)
Extension::__construct($identifier)
Extension::getDependencies()
Extension::getPath()
Extension::getRelativePath()
Extension::getContent()
Extension::getLangMessages()
Extension::getLangDefinitionExpression()
Extension::getIncludeExpression($callbackName = "onExtensionsLoaded")
Extension::getResolvedDependencyList($name, &$list = [], &$alreadyResolved = [])
Component::__construct($path = null)
Component::getPath()
Component::createInstanceByName($name, $namespace = "bitrix")
Component::getResult()
Component::execute($resultOnly = false, $loadExtensionsSeparately = false)
Component::getInfo()
Component::getVersion()
Component::getPublicPath()
Component::getDependencies()
Component::getExtensionsContent($lazyLoad = false)
mobileapp::__construct()
mobileapp::InstallDB()
mobileapp::UnInstallDB($arParams = array())
mobileapp::InstallFiles()
mobileapp::UnInstallFiles()
mobileapp::DoInstall()
mobileapp::DoUninstall()