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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnExpiredTokenCCloudStorageBucket::RenewToken
OnAfterSaveFileCCloudStorageBucket::SaveFile
OnAfterDeleteFileCCloudStorageBucket::DeleteFile
OnAfterCopyFileCCloudStorageBucket::FileCopy
OnAfterRenameFileCCloudStorageBucket::FileRename
OnGetStorageServiceCCloudStorage::_init
OnAfterCompleteMultipartUploadCCloudStorageUpload::Finish

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

КонстантаПроверяется
BX_MOBILECCloudStorage::OnBeforeResizeImage
BX_CLOUDS_UNINSTALLEDclouds::UnInstallDB
BX_CHECK_SHORT_URICCloudStorage::OnBeforeProlog

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

Метод
CCloudStorageService_OpenStackStorage::GetLastRequestStatus()
CCloudStorageService_OpenStackStorage::GetObject()
CCloudStorageService_OpenStackStorage::GetID()
CCloudStorageService_OpenStackStorage::GetName()
CCloudStorageService_OpenStackStorage::GetLocationList()
CCloudStorageService_OpenStackStorage::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService_OpenStackStorage::CheckSettings($arBucket, &$arSettings)
CCloudStorageService_OpenStackStorage::_GetToken($host, $user, $key)
CCloudStorageService_OpenStackStorage::SendRequest($settings, $verb, $bucket, $file_name='', $params='', $content=false, $additional_headers=array())
CCloudStorageService_OpenStackStorage::CreateBucket($arBucket)
CCloudStorageService_OpenStackStorage::DeleteBucket($arBucket)
CCloudStorageService_OpenStackStorage::IsEmptyBucket($arBucket)
CCloudStorageService_OpenStackStorage::GetFileSRC($arBucket, $arFile)
CCloudStorageService_OpenStackStorage::FileExists($arBucket, $filePath)
CCloudStorageService_OpenStackStorage::FileCopy($arBucket, $arFile, $filePath)
CCloudStorageService_OpenStackStorage::DownloadToFile($arBucket, $arFile, $filePath)
CCloudStorageService_OpenStackStorage::DeleteFile($arBucket, $filePath)
CCloudStorageService_OpenStackStorage::SaveFile($arBucket, $filePath, $arFile)
CCloudStorageService_OpenStackStorage::ListFiles($arBucket, $filePath, $bRecursive = false)
CCloudStorageService_OpenStackStorage::InitiateMultipartUpload($arBucket, &$NS, $filePath, $fileSize, $ContentType)
CCloudStorageService_OpenStackStorage::GetMinUploadPartSize()
CCloudStorageService_OpenStackStorage::UploadPartNo($arBucket, &$NS, $data, $part_no)
CCloudStorageService_OpenStackStorage::UploadPart($arBucket, &$NS, $data)
CCloudStorageService_OpenStackStorage::CompleteMultipartUpload($arBucket, &$NS)
CCloudStorageBucket::__construct($ID)
CCloudStorageBucket::getBucketArray()
CCloudStorageBucket::getService()
CCloudStorageBucket::CompileModuleRule($str)
CCloudStorageBucket::CompileExtentionRule($str)
CCloudStorageBucket::ParseSize($str)
CCloudStorageBucket::CompileSizeRule($str)
CCloudStorageBucket::CompileRules($arRules)
CCloudStorageBucket::_init()
CCloudStorageBucket::__get($name)
CCloudStorageBucket::Init()
CCloudStorageBucket::RenewToken()
CCloudStorageBucket::CheckSettings(&$arSettings)
CCloudStorageBucket::CreateBucket()
CCloudStorageBucket::GetFileSRC($arFile)
CCloudStorageBucket::FileExists($filePath)
CCloudStorageBucket::DownloadToFile($arFile, $filePath)
CCloudStorageBucket::SaveFile($filePath, $arFile)
CCloudStorageBucket::DeleteFile($filePath)
CCloudStorageBucket::FileCopy($arFile, $filePath)
CCloudStorageBucket::FileRename($sourcePath, $targetPath, $overwrite = true)
CCloudStorageBucket::ListFiles($filePath = "/", $bRecursive = false)
CCloudStorageBucket::GetFileSize($filePath)
CCloudStorageBucket::GetAllBuckets()
CCloudStorageBucket::CheckFields(&$arFields, $ID)
CCloudStorageBucket::GetList($arOrder=false, $arFilter=false, $arSelect=false)
CCloudStorageBucket::Add($arFields)
CCloudStorageBucket::Delete()
CCloudStorageBucket::Update($arFields)
CCloudStorageBucket::ConvertPOST($arPOST)
CCloudStorageBucket::setHeader($name, $value)
CCloudStorageService_GoogleStorage::GetLastRequestStatus()
CCloudStorageService_GoogleStorage::GetObject()
CCloudStorageService_GoogleStorage::GetID()
CCloudStorageService_GoogleStorage::GetName()
CCloudStorageService_GoogleStorage::GetLocationList()
CCloudStorageService_GoogleStorage::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService_GoogleStorage::CheckSettings($arBucket, &$arSettings)
CCloudStorageService_GoogleStorage::CreateBucket($arBucket)
CCloudStorageService_GoogleStorage::DeleteBucket($arBucket)
CCloudStorageService_GoogleStorage::IsEmptyBucket($arBucket)
CCloudStorageService_GoogleStorage::GetFileSRC($arBucket, $arFile)
CCloudStorageService_GoogleStorage::FileExists($arBucket, $filePath)
CCloudStorageService_GoogleStorage::FileCopy($arBucket, $arFile, $filePath)
CCloudStorageService_GoogleStorage::DownloadToFile($arBucket, $arFile, $filePath)
CCloudStorageService_GoogleStorage::DeleteFile($arBucket, $filePath)
CCloudStorageService_GoogleStorage::SaveFile($arBucket, $filePath, $arFile)
CCloudStorageService_GoogleStorage::ListFiles($arBucket, $filePath, $bRecursive = false)
CCloudStorageService_GoogleStorage::StartUpload($arBucket, $filePath, $ContentType)
CCloudStorageService_GoogleStorage::InitiateMultipartUpload($arBucket, &$NS, $filePath, $fileSize, $ContentType)
CCloudStorageService_GoogleStorage::GetMinUploadPartSize()
CCloudStorageService_GoogleStorage::UploadRange($filePathU, $arBucket, &$NS, $data, $pos)
CCloudStorageService_GoogleStorage::UploadPartNo($arBucket, &$NS, $data, $part_no)
CCloudStorageService_GoogleStorage::UploadPart($arBucket, &$NS, $data)
CCloudStorageService_GoogleStorage::CompleteMultipartUpload($arBucket, &$NS)
CCloudStorageService_GoogleStorage::SendRequest($access_key, $secret_key, $verb, $bucket, $file_name='/', $params='', $content='', $additional_headers=array())
CCloudStorageService_GoogleStorage::hmacsha1($data, $key)
CCloudStorageService_ClodoRU::GetObject()
CCloudStorageService_ClodoRU::GetID()
CCloudStorageService_ClodoRU::GetName()
CCloudStorageService_ClodoRU::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudSecurityService_AmazonS3::GetLastRequestStatus()
CCloudSecurityService_AmazonS3::GetObject()
CCloudSecurityService_AmazonS3::GetID()
CCloudSecurityService_AmazonS3::GetName()
CCloudSecurityService_AmazonS3::GetDefaultBucketControlPolicy($bucket, $prefix)
CCloudSecurityService_AmazonS3::GetFederationToken($arBucket, $Policy, $Name, $DurationSeconds = 129600/*36h*/)
CCloudSecurityService_AmazonS3::SendRequest($access_key, $secret_key, $verb, $bucket, $file_name='/', $params='')
CCloudSecurityService_AmazonS3::hmacsha1($data, $key)
CCloudSecurityService_AmazonS3::PhpToJSObject($arData, $bWS = false, $bSkipTilda = false)
CCloudStorage::_init()
CCloudStorage::GetServiceByID($ID)
CCloudStorage::GetServiceList()
CCloudStorage::GetServiceLocationList($ID)
CCloudStorage::GetServiceDescription($ID)
CCloudStorage::FindBucketForFile($arFile, $strFileName)
CCloudStorage::OnBeforeResizeImage($arFile, $arResizeParams, &$callbackData, &$bNeedResize, &$sourceImageFile, &$cacheImageFileTmp)
CCloudStorage::OnAfterResizeImage($arFile, $arResizeParams, &$callbackData, &$cacheImageFile, &$cacheImageFileTmp, &$arImageSize)
CCloudStorage::ResizeImageFileGet($destinationFile)
CCloudStorage::ResizeImageFileAdd(&$arDestinationSize, $sourceFile, $destinationFile, $arResizeParams, $errorCode = 0)
CCloudStorage::ResizeImageFileDelay(&$arDestinationSize, $sourceFile, $destinationFile, $arResizeParams)
CCloudStorage::ResizeImageFileCheck($obBucket, $path)
CCloudStorage::OnMakeFileArray($arSourceFile, &$arDestination)
CCloudStorage::OnFileDelete($arFile)
CCloudStorage::DeleteDirFilesEx($path)
CCloudStorage::OnFileCopy(&$arFile, $newPath = "")
CCloudStorage::OnGetFileSRC($arFile)
CCloudStorage::MoveFile($arFile, $obTargetBucket)
CCloudStorage::OnFileSave(&$arFile, $strFileName, $strSavePath, $bForceMD5 = false, $bSkipExt = false, $dirAdd = '')
CCloudStorage::FindBucketByFile($file_name)
CCloudStorage::FindFileURIByURN($urn, $log_descr = "")
CCloudStorage::OnBuildGlobalMenu(&$aGlobalMenu, &$aModuleMenu)
CCloudStorage::OnAdminListDisplay(&$obList)
CCloudStorage::HasActiveBuckets()
CCloudStorage::OnBeforeProlog()
CCloudStorage::GetAuditTypes()
CCloudStorage::translit($file_name, $safe_chars = '')
CCloudStorage::FixFileContentType(&$arFile)
CCloudTempFile::GetAbsoluteRoot()
CCloudTempFile::RegisterShutdown()
CCloudTempFile::GetFileName($obBucket, $file_name = '')
CCloudTempFile::GetDirectoryName($obBucket, $hours_to_keep_files = 0, $subdir = "")
CCloudTempFile::Cleanup()
CCloudStorageService_Selectel::GetObject()
CCloudStorageService_Selectel::GetID()
CCloudStorageService_Selectel::GetName()
CCloudStorageService_Selectel::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService_Selectel::CheckSettings($arBucket, &$arSettings)
CCloudStorageService_AmazonS3::GetLastRequestStatus()
CCloudStorageService_AmazonS3::GetObject()
CCloudStorageService_AmazonS3::GetID()
CCloudStorageService_AmazonS3::GetName()
CCloudStorageService_AmazonS3::GetLocationList()
CCloudStorageService_AmazonS3::GetAPList()
CCloudStorageService_AmazonS3::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService_AmazonS3::CheckSettings($arBucket, &$arSettings)
CCloudStorageService_AmazonS3::hmacsha1($data, $key)
CCloudStorageService_AmazonS3::SignRequest($arSettings, $RequestMethod, $bucket, $RequestURI, $ContentType, $additional_headers, $params = "", $content = "")
CCloudStorageService_AmazonS3::SetLocation($location)
CCloudStorageService_AmazonS3::GetRequestHost($bucket)
CCloudStorageService_AmazonS3::SendRequest($arSettings, $verb, $bucket, $file_name='/', $params='', $content='', $additional_headers=/*.(array[string]string).*/array())
CCloudStorageService_AmazonS3::CreateBucket($arBucket)
CCloudStorageService_AmazonS3::DeleteBucket($arBucket)
CCloudStorageService_AmazonS3::IsEmptyBucket($arBucket)
CCloudStorageService_AmazonS3::GetFileSRC($arBucket, $arFile)
CCloudStorageService_AmazonS3::FileExists($arBucket, $filePath)
CCloudStorageService_AmazonS3::FileCopy($arBucket, $arFile, $filePath)
CCloudStorageService_AmazonS3::DownloadToFile($arBucket, $arFile, $filePath)
CCloudStorageService_AmazonS3::DeleteFile($arBucket, $filePath)
CCloudStorageService_AmazonS3::SaveFile($arBucket, $filePath, $arFile)
CCloudStorageService_AmazonS3::ListFiles($arBucket, $filePath, $bRecursive = false)
CCloudStorageService_AmazonS3::InitiateMultipartUpload($arBucket, &$NS, $filePath, $fileSize, $ContentType)
CCloudStorageService_AmazonS3::GetMinUploadPartSize()
CCloudStorageService_AmazonS3::UploadPartNo($arBucket, &$NS, $data, $part_no)
CCloudStorageService_AmazonS3::UploadPart($arBucket, &$NS, $data)
CCloudStorageService_AmazonS3::CompleteMultipartUpload($arBucket, &$NS)
CCloudStorageService_AmazonS3::setPublic($state = true)
CCloudStorageService_AmazonS3::setHeader($key, $value)
CCloudStorageService_AmazonS3::unsetHeader($key)
CCloudStorageService_AmazonS3::getHeaders()
CCloudStorageService_RackSpaceCloudFiles::GetObject()
CCloudStorageService_RackSpaceCloudFiles::GetID()
CCloudStorageService_RackSpaceCloudFiles::GetName()
CCloudStorageService_RackSpaceCloudFiles::_GetToken($host, $user, $key)
CCloudStorageService_RackSpaceCloudFiles::SendCDNRequest($settings, $verb, $bucket, $file_name='', $params='', $content=false, $additional_headers=array())
CCloudStorageService_RackSpaceCloudFiles::CreateBucket($arBucket)
CCloudStorageService_RackSpaceCloudFiles::GetFileSRC($arBucket, $arFile)
CCloudStorageService_HotBox::GetLastRequestStatus()
CCloudStorageService_HotBox::GetObject()
CCloudStorageService_HotBox::GetID()
CCloudStorageService_HotBox::GetName()
CCloudStorageService_HotBox::GetLocationList()
CCloudStorageService_HotBox::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService_HotBox::GetRequestHost($bucket)
CCloudStorageService_HotBox::GetFileSRC($arBucket, $arFile)
CCloudStorageService_HotBox::DeleteBucket($arBucket)
CCloudStorageService::GetObject()
CCloudStorageService::GetObjectInstance()
CCloudStorageService::GetID()
CCloudStorageService::GetName()
CCloudStorageService::GetLocationList()
CCloudStorageService::GetSettingsHTML($arBucket, $bServiceSet, $cur_SERVICE_ID, $bVarsFromForm)
CCloudStorageService::CheckSettings($arBucket, &$arSettings)
CCloudStorageService::CreateBucket($arBucket)
CCloudStorageService::DeleteBucket($arBucket)
CCloudStorageService::IsEmptyBucket($arBucket)
CCloudStorageService::GetFileSRC($arBucket, $arFile)
CCloudStorageService::FileExists($arBucket, $filePath)
CCloudStorageService::FileCopy($arBucket, $arFile, $filePath)
CCloudStorageService::FileRename($arBucket, $sourcePath, $targetPath, $overwrite = true)
CCloudStorageService::DownloadToFile($arBucket, $arFile, $filePath)
CCloudStorageService::DeleteFile($arBucket, $filePath)
CCloudStorageService::SaveFile($arBucket, $filePath, $arFile)
CCloudStorageService::ListFiles($arBucket, $filePath, $bRecursive = false)
CCloudStorageService::InitiateMultipartUpload($arBucket, &$NS, $filePath, $fileSize, $ContentType)
CCloudStorageService::GetMinUploadPartSize()
CCloudStorageService::UploadPart($arBucket, &$NS, $data)
CCloudStorageService::CompleteMultipartUpload($arBucket, &$NS)
CCloudStorageService::SetHeader($name, $value)
CCloudStorageService::UnsetHeader($name)
CCloudStorageService::SetPublic($public)
CCloudStorageUpload::__construct($filePath)
CCloudStorageUpload::GetArray()
CCloudStorageUpload::isStarted()
CCloudStorageUpload::Delete()
CCloudStorageUpload::DeleteOld()
CCloudStorageUpload::Start($bucket_id, $fileSize, $ContentType = 'binary/octet-stream', $tmpFileName = false)
CCloudStorageUpload::Next($data, $obBucket = null)
CCloudStorageUpload::Part($data, $part_no, $obBucket = null)
CCloudStorageUpload::Finish($obBucket = null)
CCloudStorageUpload::GetPartCount()
CCloudStorageUpload::GetPos()
CCloudStorageUpload::getPartSize()
CCloudStorageUpload::hasRetries()
CCloudStorageUpload::getTempFileName()
CCloudStorageUpload::UpdateProgress($arUploadInfo, $bSuccess)
CCloudUtil::URLEncode($str, $charset)
CCloudStorageBucket::SetFileCounter($file_size, $file_count)
CCloudStorageBucket::IncFileCounter($file_size = 0.0)
CCloudStorageBucket::DecFileCounter($file_size = 0.0)
clouds::clouds()
clouds::GetModuleTasks()
clouds::InstallDB($arParams = array())
clouds::UnInstallDB($arParams = array())
clouds::InstallEvents()
clouds::UnInstallEvents()
clouds::InstallFiles($arParams = array())
clouds::UnInstallFiles()
clouds::DoInstall()
clouds::DoUninstall()