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

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


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

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

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

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

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

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

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

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

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

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

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

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

Метод
Address::canUseMap()
Address::checkFields()
Address::checkRestriction()
Address::getAdminListEditHtml()
Address::getAdminListViewHtml()
Address::getApiKey()
Address::getApiKeyHint()
Address::getDbColumnType()
Address::getEdit()
Address::getEditFormHtml()
Address::getEditFormHtmlMulty()
Address::getPublicEdit()
Address::getPublicText()
Address::getPublicView()
Address::getSettingsHtml()
Address::getTrialHint()
Address::getUserTypeDescription()
Address::onBeforeSave()
Address::parseValue()
Address::prepareSettings()
Address::useRestriction()
AddressType::canUseMap()
AddressType::checkFields()
AddressType::checkRestriction()
AddressType::getApiKey()
AddressType::getApiKeyHint()
AddressType::getDbColumnType()
AddressType::getDescription()
AddressType::getFilterData()
AddressType::getTrialHint()
AddressType::onAfterGetPublicView()
AddressType::onBeforeGetPublicView()
AddressType::onBeforeSave()
AddressType::onGetPublicView()
AddressType::onSearchIndex()
AddressType::parseValue()
AddressType::prepareSettings()
AddressType::useRestriction()
BlockContent::__construct()
BlockContent::add()
BlockContent::filterListByType()
BlockContent::getBlocks()
BlockContent::getList()
BlockContent::getStyles()
BlockContent::setList()
CCodeEditor::GetLangMessage()
CCodeEditor::Show()
CComponentParamsManager::DisplayFileDialogsScripts()
CComponentParamsManager::FetchHelp()
CComponentParamsManager::GetComponentProperties()
CComponentParamsManager::GetLangMessages()
CComponentParamsManager::Init()
CComponentParamsManager::ProcessRequest()
CEditorUtils::GetCSS()
CEditorUtils::GetCompProperties()
CEditorUtils::RenderComponents()
CEditorUtils::StartFetchCSS()
CEditorUtils::UnJSEscapeArray()
CEditorUtils::_RenderAllComponents()
CEditorUtils::_RenderOneComponent()
CEventFileman::GetAuditTypes()
CEventFileman::GetEventInfo()
CEventFileman::GetFilter()
CEventFileman::GetFilterSQL()
CEventFileman::MakeFilemanObject()
CFileInput::DisplayControl()
CFileInput::DisplayDialogs()
CFileInput::DisplayFile()
CFileInput::GetFile()
CFileInput::GetInputName()
CFileInput::Init()
CFileInput::IsViewMode()
CFileInput::Show()
CFileInput::ShowMultiple()
CFileInput::ShowOpenerMenuHtml()
CFileMan::AddHTMLEditorFrame()
CFileMan::CheckFileName()
CFileMan::CheckOnAllowedComponents()
CFileMan::ClearComponentsListCache()
CFileMan::CompareFiles()
CFileMan::CopyEx()
CFileMan::CreateDir()
CFileMan::DeleteDir()
CFileMan::DeleteEx()
CFileMan::DeleteFile()
CFileMan::DirsRecursive()
CFileMan::EscapePHPString()
CFileMan::FetchFileAccessPerm()
CFileMan::GetAllDirList()
CFileMan::GetAllTemplateParams()
CFileMan::GetDirList()
CFileMan::GetEditorToolbarConfig()
CFileMan::GetFileExtension()
CFileMan::GetFileName()
CFileMan::GetFileTemplates()
CFileMan::GetFileType()
CFileMan::GetFileTypeEx()
CFileMan::GetHTMLEditorSettings()
CFileMan::GetLastPathes()
CFileMan::GetLastPathesDefault()
CFileMan::GetMenuArray()
CFileMan::GetPropstypes()
CFileMan::GetScriptFileExt()
CFileMan::GetStrFileSize()
CFileMan::GetTemplateContent()
CFileMan::GetUnixFilePermissions()
CFileMan::GetVersion()
CFileMan::IsPHP()
CFileMan::IsWindows()
CFileMan::NormalizePath()
CFileMan::OnGroupDelete()
CFileMan::OnModuleUpdate()
CFileMan::OnPanelCreate()
CFileMan::ParseFileContent()
CFileMan::ParsePath()
CFileMan::SaveLastPath()
CFileMan::SaveMenu()
CFileMan::SecurePathVar()
CFileMan::SetLastPathes()
CFileMan::SetProperty()
CFileMan::SetPropstypes()
CFileMan::SetTitle()
CFileMan::ShowHTMLEditControl()
CFileMan::ShowTypeSelector()
CFileMan::UnEscapePHPString()
CFileMan::UndoEditFile()
CFileMan::UndoFileDelete()
CFileMan::UndoNewFile()
CFileMan::UndoNewSection()
CFileMan::__CheckOnAllowedComponents()
CFileMan::__CheckSite()
CFileMan::decodeLangFile()
CFileMan::decodePdfViewerLangFiles()
CFilemanChmod::CheckBreak()
CFilemanChmod::Chmod()
CFilemanChmod::Init()
CFilemanCopy::GetAltFileName()
CFilemanCopy::GetConfig()
CFilemanCopy::Init()
CFilemanCopy::SaveConfig()
CFilemanSearch::CheckBreak()
CFilemanSearch::CheckSearchSess()
CFilemanSearch::CleanOldSearchResult()
CFilemanSearch::DelFromSearchResult()
CFilemanSearch::GetConfig()
CFilemanSearch::GetSearchResult()
CFilemanSearch::GetSearchSess()
CFilemanSearch::Init()
CFilemanSearch::RenameInSearchResult()
CFilemanSearch::SaveConfig()
CFilemanSearch::Search()
CFilemanSearch::SecureSearchSess()
CFilemanSearch::SetSearchResult()
CFilemanSearch::trimPath()
CFilemanTransliterate::Init()
CFilemanUtilDir::CFilemanUtilDir()
CFilemanUtilDir::CallMethod()
CFilemanUtilDir::Recursion()
CFilemanUtilDir::Start()
CFilemanUtils::AppendLangMessages()
CFilemanUtils::BuildDialogContent()
CFilemanUtils::GetLastPathes()
CFilemanUtils::GetModifyTime()
CFilemanUtils::GetTimeout()
CFilemanUtils::InitScript()
CFilemanUtils::NormalizePath()
CFilemanUtils::Request()
CFilemanUtils::TrimPath()
CHTMLEditor::BuildSceleton()
CHTMLEditor::GetActualPath()
CHTMLEditor::GetComponentParams()
CHTMLEditor::GetComponents()
CHTMLEditor::GetServerPath()
CHTMLEditor::GetSettingKey()
CHTMLEditor::GetSiteTemplateParams()
CHTMLEditor::GetSiteTemplates()
CHTMLEditor::GetSnippets()
CHTMLEditor::GetUploadPath()
CHTMLEditor::GetVideoOembed()
CHTMLEditor::Init()
CHTMLEditor::InitLangMess()
CHTMLEditor::RequestAction()
CHTMLEditor::Run()
CHTMLEditor::SafeJsonEncode()
CHTMLEditor::Show()
CHTMLEditor::ShowResponse()
CHTMLEditor::_HandleComponentElement()
CHTMLEditor::_HandleComponentParam()
CHTMLEditor::getRemoteVideoUrlInfo()
CIBlockPropertyMapGoogle::GetPropertyFieldHtml()
CIBlockPropertyMapGoogle::GetPublicViewHTML()
CIBlockPropertyMapGoogle::GetSettingsHTML()
CIBlockPropertyMapGoogle::GetUserTypeDescription()
CIBlockPropertyMapGoogle::PrepareSettings()
CIBlockPropertyMapInterface::ConvertFromDB()
CIBlockPropertyMapInterface::ConvertToDB()
CIBlockPropertyMapInterface::GetAdminListViewHTML()
CIBlockPropertyMapInterface::_GetMapKey()
CIBlockPropertyMapYandex::GetPropertyFieldHtml()
CIBlockPropertyMapYandex::GetPublicEditHTML()
CIBlockPropertyMapYandex::GetPublicViewHTML()
CIBlockPropertyMapYandex::GetSettingsHTML()
CIBlockPropertyMapYandex::GetUserTypeDescription()
CIBlockPropertyMapYandex::PrepareSettings()
CIBlockPropertyMapYandex::_DrawKeyInputControl()
CIBlockPropertyVideo::CheckFields()
CIBlockPropertyVideo::ConvertFromDB()
CIBlockPropertyVideo::ConvertToDB()
CIBlockPropertyVideo::GetAdminListViewHTML()
CIBlockPropertyVideo::GetLength()
CIBlockPropertyVideo::GetPropertyFieldHtml()
CIBlockPropertyVideo::GetPublicViewHTML()
CIBlockPropertyVideo::GetSearchContent()
CIBlockPropertyVideo::GetSettingsHTML()
CIBlockPropertyVideo::GetUserTypeDescription()
CIBlockPropertyVideo::PrepareSettings()
CLightHTMLEditor::BuildSceleton()
CLightHTMLEditor::GetActualPath()
CLightHTMLEditor::Init()
CLightHTMLEditor::InitFileDialogs()
CLightHTMLEditor::InitMedialibDialogs()
CLightHTMLEditor::InitScripts()
CLightHTMLEditor::IsMobileDevice()
CLightHTMLEditor::Show()
CMedialib::AppendLangMessages()
CMedialib::AppendLangMessagesEx()
CMedialib::AttachJSScripts()
CMedialib::AutosaveImage()
CMedialib::BuildAddCollectionDialog()
CMedialib::BuildAddCollectionDialogAdmin()
CMedialib::BuildAddItemDialog()
CMedialib::BuildAddItemDialogAdmin()
CMedialib::BuildChangeType()
CMedialib::BuildConfirmDialog()
CMedialib::BuildDialog()
CMedialib::BuildViewItemDialog()
CMedialib::CanDoOperation()
CMedialib::ChangeColType()
CMedialib::CheckFileExtention()
CMedialib::ClearCache()
CMedialib::CompareTypesEx()
CMedialib::DelCollection()
CMedialib::DelItem()
CMedialib::DelTypes()
CMedialib::DeleteThumbnails()
CMedialib::EditCollection()
CMedialib::EditItem()
CMedialib::Escape()
CMedialib::GetAccessPermissionsArray()
CMedialib::GetCollectionTree()
CMedialib::GetCollections()
CMedialib::GetDefaultMediaExtentions()
CMedialib::GetItemCollectionList()
CMedialib::GetItemViewHTML()
CMedialib::GetItems()
CMedialib::GetMediaExtentions()
CMedialib::GetOperations()
CMedialib::GetTypeById()
CMedialib::GetTypes()
CMedialib::GetUsableDate()
CMedialib::GetUsableSize()
CMedialib::Init()
CMedialib::InputFile()
CMedialib::MultiActionDelete()
CMedialib::SaveAccessPermissions()
CMedialib::SaveUserSettings()
CMedialib::SearchItems()
CMedialib::SetTypes()
CMedialib::ShowBrowseButton()
CMedialib::ShowDialogScript()
CMedialib::ShowJS()
CMedialib::ShowUploadForm()
CMedialib::Start()
CMedialib::_BuildCollectionsSelectOptions()
CMedialib::_GetAccessPermissions()
CMedialib::_buildCollection()
CMedialib::_findChildInColTree()
CMedialib::getMaximumFileUploadSize()
CMedialibCollection::ChangeType()
CMedialibCollection::CheckFields()
CMedialibCollection::Delete()
CMedialibCollection::Edit()
CMedialibCollection::GetErrorMess()
CMedialibCollection::GetList()
CMedialibCollection::IsViewable()
CMedialibItem::CheckFields()
CMedialibItem::Delete()
CMedialibItem::DeleteEmpty()
CMedialibItem::Edit()
CMedialibItem::GenerateThumbnail()
CMedialibItem::GetFullPath()
CMedialibItem::GetItemCollections()
CMedialibItem::GetList()
CMedialibItem::GetSourceId()
CMedialibItem::GetThumbPath()
CMedialibItem::Search()
CMedialibTabControl::ShowScript()
CSnippets::Add()
CSnippets::CheckFile()
CSnippets::ClearCache()
CSnippets::CreateCategory()
CSnippets::Delete()
CSnippets::DisplayJSGroups()
CSnippets::Edit()
CSnippets::GetBasePath()
CSnippets::GetCode()
CSnippets::GetDefaultFileName()
CSnippets::GetGroupList()
CSnippets::GetGroups()
CSnippets::HandleForTemplate()
CSnippets::InspectDir()
CSnippets::LoadList()
CSnippets::ReadDir()
CSnippets::Remove()
CSnippets::RemoveCategory()
CSnippets::RenameCategory()
CSnippets::SaveGroupList()
CSnippets::Update()
CSnippets::UpdateContentInfo()
CSnippets::WriteHtaccess()
CSpellchecker::__construct()
CSpellchecker::addWord()
CSpellchecker::checkDicPath()
CSpellchecker::checkWord()
CSpellchecker::checkWords()
CSpellchecker::codeLetter()
CSpellchecker::loadDic()
CSpellchecker::suggest()
CSticker::AppendLangMessages()
CSticker::BBParseToHTML()
CSticker::CanDoOperation()
CSticker::CheckFields()
CSticker::ClearCache()
CSticker::Delete()
CSticker::DeleteAll()
CSticker::Edit()
CSticker::GetAccessPermissions()
CSticker::GetBShowStickers()
CSticker::GetById()
CSticker::GetCount()
CSticker::GetCurPageCount()
CSticker::GetErrorMess()
CSticker::GetFilterParams()
CSticker::GetList()
CSticker::GetOperations()
CSticker::GetPagesList()
CSticker::GetScriptStr()
CSticker::GetStickerInfo()
CSticker::GetTasks()
CSticker::GetUsableDate()
CSticker::GetUserName()
CSticker::Init()
CSticker::InitJS()
CSticker::InitJsAfter()
CSticker::SaveAccessPermissions()
CSticker::SetBShowStickers()
CSticker::SetFilterParams()
CSticker::SetHiden()
CUserTypeVideo::CheckFields()
CUserTypeVideo::GetAdminListViewHTML()
CUserTypeVideo::GetDBColumnType()
CUserTypeVideo::GetEditFormHTML()
CUserTypeVideo::GetPublicViewHTML()
CUserTypeVideo::GetSettingsHTML()
CUserTypeVideo::GetUserTypeDescription()
CUserTypeVideo::OnBeforeSave()
CUserTypeVideo::OnSearchIndex()
CUserTypeVideo::PrepareSettings()
CVideoProperty::BaseCheckFields()
CVideoProperty::BaseConvertFromDB()
CVideoProperty::BaseConvertToDB()
CVideoProperty::BaseGetAdminListViewHTML()
CVideoProperty::BaseGetEditFormHTML()
CVideoProperty::BaseGetPublicHTML()
CVideoProperty::BaseGetSettingsHTML()
CVideoProperty::BaseOnSearchContent()
CVideoProperty::BasePrepareSettings()
CVideoProperty::CheckFileInUploadDir()
CVideoProperty::GetSkinPath()
CVideoProperty::GetUploadDirPath()
Editor::__construct()
Editor::createInstance()
Editor::fillDocumentBySliceContent()
Editor::fillTemplateBySliceContent()
Editor::getComponentList()
Editor::getComponentListPlain()
Editor::getComponentTree()
Editor::getDefaultBlockList()
Editor::getDefaultToolList()
Editor::getHtmlForEditor()
Editor::getUI()
Editor::isAvailableRussian()
Editor::isContentSupported()
Editor::isHtmlDocument()
Editor::replaceCharset()
Editor::setBlockList()
Editor::setComponentFilter()
Editor::setToolList()
Editor::show()
Editor::showEditor()
EditorMail::createInstance()
EditorMail::getBlockList()
EditorMail::getPreview()
EditorMail::removePhpFromHtml()
EditorMail::show()
Engine::__construct()
Engine::addBlocksToDocument()
Engine::addStylesToDocumentHead()
Engine::create()
Engine::createBlockContent()
Engine::fill()
Engine::fillHtmlTemplate()
Engine::getConverters()
Engine::getDocument()
Engine::getHtml()
Engine::isSupported()
Engine::setBlockContent()
Engine::setContent()
Engine::setDocument()
Engine::setEncoding()
Engine::setHtml()
Geo::getCenter()
Geo::getDBColumnType()
Geo::getEditFormHTML()
Geo::getEditFormHTMLMulty()
Geo::getPublicEdit()
Geo::getPublicView()
Geo::getSettingsHtml()
Geo::getUserTypeDescription()
Geo::onAfterFetch()
Geo::onBeforeSave()
Geo::prepareSettings()
Geo::showAdminEdit()
JsonConverter::isValid()
JsonConverter::toArray()
Sanitizer::clean()
Sanitizer::getCommonAttributes()
Sanitizer::getTags()
Sanitizer::replacePhpToTags()
Sanitizer::replaceTagsToPhp()
SliceConverter::isValid()
SliceConverter::sanitize()
SliceConverter::toArray()
SliceConverter::toString()
Tools::getControlAlign()
Tools::getControlBorderRadius()
Tools::getControlColor()
Tools::getControlFontFamily()
Tools::getControlFontSize()
Tools::getControlFontWeight()
Tools::getControlInput()
Tools::getControlLineHeight()
Tools::getControlPaddingBottoms()
Tools::getControlSelect()
Tools::getControlTextAlign()
Tools::getControlTextDecoration()
_GtFMess()
_MLGetTypeHTML()
_replace_br_()
fileman::DoInstall()
fileman::DoUninstall()
fileman::GetModuleRightList()
fileman::InstallDB()
fileman::InstallEvents()
fileman::InstallFiles()
fileman::UnInstallDB()
fileman::UnInstallEvents()
fileman::UnInstallFiles()
fileman::__construct()
getSkinsEx()
getSkinsFromDir()
isValidLang()
is_array_assoc()
setEditorEventHandlers()