Поддержка серверов

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnBeforeHTMLEditorScriptsGetCFileMan::ShowHTMLEditControl
OnIncludeHTMLEditorScriptCFileMan::ShowHTMLEditControl
OnBeforeHTMLEditorScriptRunsCHTMLEditor::Init
OnMedialibItemViewCMedialib::GetItemViewHTML
OnBeforeLightEditorScriptsGetCLightHTMLEditor::Init
OnIncludeLightEditorScriptCLightHTMLEditor::InitScripts

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

КонстантаПроверяется
BX_PUBLIC_MODECFileMan::ShowHTMLEditControl
SITE_TEMPLATE_IDCHTMLEditor::Init
BX_UTFCHTMLEditor::GetServerPath
SITE_SERVER_NAMECHTMLEditor::GetServerPath
BX_B_MEDIALIB_SCRIPT_LOADEDCMedialib::AttachJSScripts
BX_IMG_SERVERCFileInput::GetFile
B_PROLOG_INCLUDEDCSnippets::Remove
ADMIN_SECTIONAddress::getApiKeyHint

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

Метод
isValidLang($lang)
_GtFMess()
_MLGetTypeHTML($type = array())
CIBlockPropertyMapInterface::GetUserTypeDescription()
CIBlockPropertyMapInterface::GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapInterface::GetAdminListViewHTML($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapInterface::GetPublicViewHTML($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapInterface::ConvertFromDB($arProperty, $value)
CIBlockPropertyMapInterface::ConvertToDB($arProperty, $value)
CIBlockPropertyMapInterface::_GetMapKey($map_type, &$strDomain)
CIBlockPropertyMapGoogle::GetUserTypeDescription()
CIBlockPropertyMapGoogle::GetSettingsHTML($arProperty, $strHTMLControlName, &$arPropertyFields)
CIBlockPropertyMapGoogle::PrepareSettings($arProperty)
CIBlockPropertyMapGoogle::GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapGoogle::GetPublicViewHTML($arProperty, $value, $arParams)
CIBlockPropertyMapYandex::GetUserTypeDescription()
CIBlockPropertyMapYandex::_DrawKeyInputControl($MAP_ID, $strDomain)
CIBlockPropertyMapYandex::GetSettingsHTML($arProperty, $strHTMLControlName, &$arPropertyFields)
CIBlockPropertyMapYandex::PrepareSettings($arProperty)
CIBlockPropertyMapYandex::GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapYandex::GetPublicEditHTML($arProperty, $value, $strHTMLControlName)
CIBlockPropertyMapYandex::GetPublicViewHTML($arProperty, $value, $arParams)
CVideoProperty::BasePrepareSettings($arProperty, $key = "SETTINGS")
CVideoProperty::BaseGetSettingsHTML($name, $val)
CVideoProperty::BaseGetEditFormHTML($set, $val, $name, $controlMode=false)
CVideoProperty::BaseConvertToDB($value)
CVideoProperty::BaseConvertFromDB($val = "")
CVideoProperty::BaseCheckFields($val)
CVideoProperty::BaseGetAdminListViewHTML($val)
CVideoProperty::BaseGetPublicHTML($set, $val)
CVideoProperty::BaseOnSearchContent($val)
CVideoProperty::CheckFileInUploadDir($path = '')
CVideoProperty::GetUploadDirPath()
CVideoProperty::GetSkinPath()
getSkinsEx($path)
getSkinsFromDir($path)
CIBlockPropertyVideo::GetUserTypeDescription()
CIBlockPropertyVideo::GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
CIBlockPropertyVideo::GetAdminListViewHTML($arProperty, $value, $strHTMLControlName)
CIBlockPropertyVideo::GetPublicViewHTML($arProperty, $value, $strHTMLControlName)
CIBlockPropertyVideo::ConvertFromDB($arProperty, $value)
CIBlockPropertyVideo::ConvertToDB($arProperty, $value)
CIBlockPropertyVideo::CheckFields($arProperty, $value)
CIBlockPropertyVideo::GetLength($arProperty, $value)
CIBlockPropertyVideo::PrepareSettings($arProperty)
CIBlockPropertyVideo::GetSettingsHTML($arProperty, $strHTMLControlName, &$arPropertyFields)
CIBlockPropertyVideo::GetSearchContent($arProperty, $value, $strHTMLControlName)
CUserTypeVideo::GetUserTypeDescription()
CUserTypeVideo::GetDBColumnType($arUserField)
CUserTypeVideo::PrepareSettings($arProperty)
CUserTypeVideo::GetSettingsHTML($arUserField = array(), $arHtmlControl, $bVarsFromForm)
CUserTypeVideo::GetEditFormHTML($arUserField, $arHtmlControl)
CUserTypeVideo::OnBeforeSave($arUserField, $value)
CUserTypeVideo::GetAdminListViewHTML($arUserField, $arHtmlControl)
CUserTypeVideo::CheckFields($arUserField, $value)
CUserTypeVideo::OnSearchIndex($arUserField)
CUserTypeVideo::GetPublicViewHTML($arUserField, $arHtmlControl)
CFileMan::OnPanelCreate()
CFileMan::OnGroupDelete($group_id)
CFileMan::GetVersion()
CFileMan::SaveMenu($path, $aMenuLinksTmp, $sMenuTemplateTmp = "")
CFileMan::GetMenuArray($abs_path)
CFileMan::GetFileName($path)
CFileMan::CreateDir($path)
CFileMan::DeleteDir($path)
CFileMan::DeleteFile($path)
CFileMan::DeleteEx($path)
CFileMan::NormalizePath($path)
CFileMan::CopyEx($path_from, $path_to, $bDeleteAfterCopy = false, $bOverride = false)
CFileMan::GetAllDirList(&$arDirs, $arFilter=Array(), $site=false)
CFileMan::DirsRecursive($path, &$arDirs, $arFilter=Array(), $depth=0)
CFileMan::CompareFiles($f1, $f2, $sort=Array())
CFileMan::GetDirList($path, &$arDirs, &$arFiles, $arFilter=Array(), $sort=Array(), $type="DF", $bLogical=false, $task_mode=false)
CFileMan::__CheckSite($site)
CFileMan::ParsePath($path, $bLast=false, $url=false, $param="", $bLogical = false)
CFileMan::GetFileExtension($path)
CFileMan::GetFileType($path)
CFileMan::GetStrFileSize($size)
CFileMan::GetFileTypeEx($fileName)
CFileMan::EscapePHPString($str)
CFileMan::UnEscapePHPString($str)
CFileMan::UndoFileDelete($Params, $type)
CFileMan::UndoNewFile($Params, $type)
CFileMan::UndoEditFile($Params, $type)
CFileMan::UndoNewSection($Params, $type)
CFileMan::FetchFileAccessPerm($path)
CFileMan::ShowTypeSelector($params)
CFileMan::AddHTMLEditorFrame(N/A)
CFileMan::ShowHTMLEditControl($name, $content, $arParams = Array())
CFileMan::GetFileTemplates($lang = LANG, $arTemplates=Array())
CFileMan::GetTemplateContent($filename, $lang=LANG, $arTemplates=Array())
CFileMan::GetScriptFileExt()
CFileMan::ParseFileContent($filesrc, $bCheckProlog = false)
CFileMan::SetTitle($prolog, $title)
CFileMan::SetProperty($prolog, $property_key, $property_val)
CFileMan::IsPHP($src)
CFileMan::GetAllTemplateParams($templateID, $site, $findcomponent = true, $arAdditionalParams = Array())
CFileMan::__CheckOnAllowedComponents($str)
CFileMan::CheckOnAllowedComponents($str)
CFileMan::GetHTMLEditorSettings($edname, $lightMode, $arTaskbars, &$loadParams)
CFileMan::CheckFileName($str)
CFileMan::GetPropstypes($site="")
CFileMan::SetPropstypes($arPT = Array(), $desc = false, $site = "")
CFileMan::OnModuleUpdate($arParams)
CFileMan::ClearComponentsListCache($id = '')
CFileMan::SecurePathVar($str)
CFileMan::GetUnixFilePermissions($file)
CFileMan::IsWindows()
CFileMan::SaveLastPath($path)
CFileMan::GetLastPathes()
CFileMan::SetLastPathes($arPathes = array())
CFileMan::GetLastPathesDefault()
CFileMan::GetEditorToolbarConfig($editorType)
is_array_assoc($arr)
setEditorEventHandlers($name)
_replace_br_($str)
CHTMLEditor::Init($arParams)
CHTMLEditor::GetActualPath($path)
CHTMLEditor::Show($arParams)
CHTMLEditor::BuildSceleton($display = true)
CHTMLEditor::Run($display = true)
CHTMLEditor::SafeJsonEncode($data = array())
CHTMLEditor::InitLangMess()
CHTMLEditor::GetSnippets($templateId, $bClearCache = false)
CHTMLEditor::GetComponents($Params, $bClearCache = false, $arFilter = array())
CHTMLEditor::_HandleComponentElement($arEls, $path)
CHTMLEditor::GetSiteTemplates()
CHTMLEditor::RequestAction($action = '')
CHTMLEditor::ShowResponse($reqId = false, $Res = false)
CHTMLEditor::GetComponentParams($name, $siteTemplate = '', $template = '', $curValues = array(), $loadHelp = true)
CHTMLEditor::_HandleComponentParam($name = '', $arParam = array(), $arGroup = array())
CHTMLEditor::GetSiteTemplateParams($templateId, $siteId)
CHTMLEditor::GetVideoOembed($url = '')
CHTMLEditor::GetServerPath()
CHTMLEditor::GetOembedUrlInfo($url = '')
CHTMLEditor::GetSettingKey($params = array())
CHTMLEditor::GetUploadPath()
CComponentParamsManager::Init($config = array())
CComponentParamsManager::ProcessRequest()
CComponentParamsManager::GetComponentProperties($name = '', $template = '', $siteTemplate = '', $currentValues = array())
CComponentParamsManager::FetchHelp($componentName, $lang = false)
CComponentParamsManager::GetLangMessages()
CComponentParamsManager::DisplayFileDialogsScripts()
CMedialib::Init()
CMedialib::GetOperations($collectionId, $menu = false)
CMedialib::CanDoOperation($operation, $collectionId=0, $userId = false, $menu = false)
CMedialib::GetAccessPermissionsArray($collectionId = 0, $oCollections = false)
CMedialib::_GetAccessPermissions($arCols = array())
CMedialib::getMaximumFileUploadSize()
CMedialib::ShowDialogScript($arConfig = array())
CMedialib::AttachJSScripts()
CMedialib::AppendLangMessages()
CMedialib::AppendLangMessagesEx()
CMedialib::Start($Params)
CMedialib::BuildDialog($Params)
CMedialib::BuildAddCollectionDialogAdmin($Params)
CMedialib::BuildAddCollectionDialog($Params)
CMedialib::BuildAddItemDialogAdmin($Params)
CMedialib::BuildAddItemDialog($Params)
CMedialib::ShowUploadForm($Params)
CMedialib::BuildConfirmDialog($Params)
CMedialib::BuildViewItemDialog($Params)
CMedialib::BuildChangeType($Params)
CMedialib::ShowJS()
CMedialib::GetCollections(&$exParams)
CMedialib::DelCollection($id, $arIds = array())
CMedialib::EditCollection($Params)
CMedialib::EditItem($Params)
CMedialib::GetCollectionTree($Params = array())
CMedialib::_buildCollection($Col, $ind, &$arColTree, &$Collections, $Params = array())
CMedialib::_findChildInColTree(&$arr, $id, $colId)
CMedialib::_BuildCollectionsSelectOptions($Collections = false, $arColTree = false, $level = 0, $selected = false)
CMedialib::GetItems($Params)
CMedialib::DelItem($id, $bCurrent = false, $colId = false)
CMedialib::DeleteThumbnails()
CMedialib::GetItemCollectionList($Params)
CMedialib::SaveUserSettings($Params)
CMedialib::SaveAccessPermissions($colId, $arTaskPerm)
CMedialib::MultiActionDelete($Params = array())
CMedialib::ShowBrowseButton($Params = array())
CMedialib::GetUsableSize($size = 0)
CMedialib::GetUsableDate($date = '')
CMedialib::GetMediaExtentions($bStr = true)
CMedialib::GetDefaultMediaExtentions()
CMedialib::CheckFileExtention($strPath = '', $arExt = false)
CMedialib::Escape($str, $bHtmlSpCh = true)
CMedialib::SearchItems($Params)
CMedialib::InputFile(N/A)
CMedialib::GetTypeById($id, $arMLTypes = false)
CMedialib::GetTypes($arConfigTypes = array(), $bGetEmpties = false)
CMedialib::SetTypes($arTypes = array())
CMedialib::DelTypes($arIds = array())
CMedialib::GetItemViewHTML($itemId)
CMedialib::ChangeColType($Params)
CMedialib::CompareTypesEx($typeMix, $arType)
CMedialib::ClearCache($arPath = false)
CMedialib::AutosaveImage($file = false)
CMedialibCollection::GetList($Params = array())
CMedialibCollection::CheckFields($arFields)
CMedialibCollection::Edit($Params)
CMedialibCollection::Delete($ID, $bDelEmpty = true)
CMedialibCollection::GetErrorMess()
CMedialibCollection::IsViewable($oCol, $arCol=false)
CMedialibCollection::ChangeType($Params)
CMedialibItem::CheckFields($arFields)
CMedialibItem::GetList($Params)
CMedialibItem::Edit($Params)
CMedialibItem::GenerateThumbnail(&$arFile, $Params = array())
CMedialibItem::GetItemCollections($Params)
CMedialibItem::Delete($ID, $bCurrent, $colId)
CMedialibItem::DeleteEmpty()
CMedialibItem::GetThumbPath($arImage)
CMedialibItem::GetFullPath($arImage, $upload_dir = false)
CMedialibItem::GetSourceId($id)
CMedialibItem::Search($arQuery, $arTypes = array())
CMedialibTabControl::ShowScript()
CFileInput::Init($showInfo, $inputName, $maxCount = false)
CFileInput::Show(N/A)
CFileInput::ShowMultiple(N/A)
CFileInput::GetFile($fileId = "")
CFileInput::DisplayControl($inputs = array())
CFileInput::DisplayDialogs()
CFileInput::DisplayFile($arFile = array(), $ind = 0)
CFileInput::ShowOpenerMenuHtml($id, $data=false)
CFileInput::GetInputName($inputName, $type = "")
CFileInput::IsViewMode()
CSpellchecker::__construct($params)
CSpellchecker::checkDicPath()
CSpellchecker::codeLetter($letter)
CSpellchecker::loadDic($letter)
CSpellchecker::checkWord($word)
CSpellchecker::checkWords($words)
CSpellchecker::suggest($word)
CSpellchecker::addWord($word = '')
CEditorUtils::RenderComponents($arParams)
CEditorUtils::_RenderOneComponent($arParams, $bLPA)
CEditorUtils::_RenderAllComponents($arParams, $bLPA)
CEditorUtils::GetCompProperties($name, $template = '', $siteTemplateId = '', $arCurVals = array())
CEditorUtils::StartFetchCSS()
CEditorUtils::GetCSS($startCount)
CEditorUtils::UnJSEscapeArray($ar)
CCodeEditor::Show($params)
CCodeEditor::GetLangMessage()
CSnippets::LoadList($Params)
CSnippets::HandleForTemplate($template, &$arSNIPPETS, &$arTemplateKeys)
CSnippets::ReadDir(&$arSNIPPETS, &$arKeys, $path, $template, $level = 0, $parent = "")
CSnippets::UpdateContentInfo(&$ar, &$arKeys, $template)
CSnippets::WriteHtaccess($path)
CSnippets::ClearCache()
CSnippets::GetCode($path)
CSnippets::Edit($Params)
CSnippets::Delete($Params)
CSnippets::CheckFile($params)
CSnippets::GetGroups($Params)
CSnippets::GetGroupList($Params)
CSnippets::SaveGroupList($Params)
CSnippets::InspectDir(&$arSnGroups, $path, $template, $level = 0, $parent = '')
CSnippets::GetDefaultFileName($path)
CSnippets::DisplayJSGroups($template, $ar = array())
CSnippets::Add($params = array())
CSnippets::Update($params = array())
CSnippets::Remove($params = array())
CSnippets::CreateCategory($params = array())
CSnippets::RenameCategory($params)
CSnippets::RemoveCategory($params)
CSnippets::GetBasePath($template)
CLightHTMLEditor::Init(&$arParams)
CLightHTMLEditor::GetActualPath($path)
CLightHTMLEditor::Show($arParams)
CLightHTMLEditor::BuildSceleton()
CLightHTMLEditor::InitScripts()
CLightHTMLEditor::InitFileDialogs()
CLightHTMLEditor::InitMedialibDialogs()
CLightHTMLEditor::IsMobileDevice()
CFilemanUtils::InitScript($Params)
CFilemanUtils::AppendLangMessages($Config)
CFilemanUtils::BuildDialogContent($site)
CFilemanUtils::Request($action, $site)
CFilemanUtils::GetTimeout()
CFilemanUtils::NormalizePath($path)
CFilemanUtils::TrimPath($path, $docRoot = false)
CFilemanUtils::GetLastPathes()
CFilemanUtils::GetModifyTime($path)
CFilemanSearch::Init($Params)
CFilemanSearch::Search($file)
CFilemanSearch::CheckBreak()
CFilemanSearch::trimPath($path, $docRoot = false)
CFilemanSearch::CheckSearchSess($searchSess)
CFilemanSearch::GetSearchResult($searchSess = '', $arOrder = array('date', 'desc'))
CFilemanSearch::SetSearchResult($searchRes, $searchSess, $bClean = true)
CFilemanSearch::DelFromSearchResult($searchSess, $path)
CFilemanSearch::RenameInSearchResult($searchSess, $pathFrom, $pathTo)
CFilemanSearch::SecureSearchSess($ssess = '')
CFilemanSearch::GetSearchSess()
CFilemanSearch::CleanOldSearchResult()
CFilemanSearch::SaveConfig($arConfig)
CFilemanSearch::GetConfig()
CFilemanUtilDir::CFilemanUtilDir($dir, $Params)
CFilemanUtilDir::Start($dir = false)
CFilemanUtilDir::Recursion($dir)
CFilemanUtilDir::CallMethod($method = '', $param = false)
CFilemanChmod::Init($Params)
CFilemanChmod::CheckBreak()
CFilemanChmod::Chmod($file)
CFilemanCopy::Init($Params)
CFilemanCopy::SaveConfig($arConfig)
CFilemanCopy::GetConfig()
CFilemanCopy::GetAltFileName($absPath, $name, $bDir = false)
CFilemanTransliterate::Init($Params)
CSticker::GetOperations()
CSticker::CanDoOperation($operation)
CSticker::GetAccessPermissions()
CSticker::SaveAccessPermissions($arTaskPerm)
CSticker::GetTasks()
CSticker::GetList($Params = array())
CSticker::ClearCache()
CSticker::GetById($id)
CSticker::GetPagesList($site)
CSticker::GetCurPageCount()
CSticker::GetCount($Params)
CSticker::Edit($Params)
CSticker::DeleteAll()
CSticker::Delete($ids = array())
CSticker::CheckFields()
CSticker::SetHiden($ids = array(), $bHide)
CSticker::InitJS($Params)
CSticker::InitJsAfter()
CSticker::GetUserName($id = false)
CSticker::AppendLangMessages()
CSticker::Init($Params = array())
CSticker::GetErrorMess()
CSticker::GetScriptStr($mode)
CSticker::GetBShowStickers()
CSticker::SetBShowStickers($bShow = false)
CSticker::BBParseToHTML($text, $bForList = false)
CSticker::GetStickerInfo($createdBy, $dateCreate, $modBy, $dateMod)
CSticker::GetUsableDate($d)
CSticker::SetFilterParams($Filter)
CSticker::GetFilterParams()
CEventFileman::MakeFilemanObject()
CEventFileman::GetFilter()
CEventFileman::GetAuditTypes()
CEventFileman::GetEventInfo($row, $arParams, $arUser)
CEventFileman::GetFilterSQL($var)
Sanitizer::clean($html)
Sanitizer::getCommonAttributes()
Sanitizer::getTags()
Editor::createInstance($params)
Editor::__construct($params)
Editor::setBlockList(array $blocks)
Editor::setToolList(array $tools)
Editor::getDefaultBlockList()
Editor::getDefaultToolList()
Editor::getUI($id, array $values)
Editor::showEditor()
Editor::show()
Editor::getHtmlForEditor($html, $charset = null)
Editor::replaceCharset($html, $charset = '#CHARSET#', $add = false)
Editor::fillTemplateBySliceContent($template, $sliceContent, $encoding = null)
Editor::fillDocumentBySliceContent(Document $document, $sliceContent, $encoding = null)
Editor::isContentSupported($content)
Editor::isHtmlDocument($content)
Editor::isSliceContent($content)
Editor::parseSliceContent($content)
Editor::setComponentFilter(array $componentFilter = null)
Editor::getComponentList()
Editor::getComponentTree()
Editor::getComponentListPlain($list)
EditorMail::createInstance($params)
EditorMail::show($params)
EditorMail::getPreview(array $params)
EditorMail::getBlockList()
Tools::getControlInput()
Tools::getControlSelect(array $optionList, $haveDefault = true)
Tools::getControlColor()
Tools::getControlPaddingBottoms()
Tools::getControlBorderRadius()
Tools::getControlTextDecoration()
Tools::getControlTextAlign()
Tools::getControlAlign()
Tools::getControlFontFamily()
Tools::getControlLineHeight()
Tools::getControlFontWeight()
Tools::getControlFontSize()
Geo::getUserTypeDescription()
Geo::getDBColumnType($arUserField)
Geo::prepareSettings($arUserField)
Geo::onBeforeSave($userField, $value)
Geo::onAfterFetch($userfield, $fetched)
Geo::getSettingsHtml($arUserField = false, $arHtmlControl, $bVarsFromForm)
Geo::getEditFormHTML($arUserField, $arHtmlControl)
Geo::getEditFormHTMLMulty($arUserField, $arHtmlControl)
Geo::showAdminEdit($arUserField, $arHtmlControl, $multiple = false)
Geo::getPublicEdit($arUserField, $arAdditionalParameters = array())
Geo::getPublicView($arUserField, $arAdditionalParameters = array())
Geo::getCenter($arUserField, $pointList)
Address::getUserTypeDescription()
Address::getApiKey()
Address::getApiKeyHint()
Address::getTrialHint()
Address::canUseMap()
Address::checkRestriction()
Address::useRestriction()
Address::PrepareSettings($arUserField)
Address::GetDBColumnType($arUserField)
Address::CheckFields($arUserField, $value)
Address::OnBeforeSave($arUserField, $value)
Address::GetSettingsHTML($arUserField = false, $arHtmlControl, $bVarsFromForm)
Address::GetEditFormHTML($arUserField, $arHtmlControl)
Address::GetEditFormHtmlMulty($arUserField, $arHtmlControl)
Address::getEdit($arUserField, $arHtmlControl)
Address::getPublicEdit($arUserField, $arAdditionalParameters = array())
Address::getPublicView($arUserField, $arAdditionalParameters = array())
Address::parseValue($value)
fileman::fileman()
fileman::InstallDB()
fileman::UnInstallDB()
fileman::InstallEvents()
fileman::UnInstallEvents()
fileman::InstallFiles()
fileman::UnInstallFiles()
fileman::DoInstall()
fileman::DoUninstall()
fileman::GetModuleRightList()