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

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


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

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

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

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

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

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

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

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

КонстантаПроверяется
BX_UTFConfig::isUtfMode

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

Метод
Action::hasErrors()
Aggregate::buildAggregateQuery()
Aggregate::buildQuery()
Apply::__construct()
Apply::getProgressParameterOptionName()
Apply::lookThroughTmpFolder()
Apply::run()
Apply::runApplying()
ApplyPublic::__construct()
ApplyPublic::getProgressParameterOptionName()
ApplyPublic::lookThroughTmpFolder()
ApplyPublic::run()
ApplyPublic::runApplying()
Archiver::__construct()
Archiver::extract()
Archiver::getProcessedFileCount()
Archiver::getSeekPosition()
Archiver::libAvailable()
Archiver::pack()
Archiver::setOptions()
Archiver::setSeekPosition()
CTranslateEventHandlers::TranslatOnPanelCreate()
CTranslateUtils::CopyMessage()
CTranslateUtils::FindAndCopy()
CTranslateUtils::setLanguageList()
CheckPermission::__construct()
CheckPermission::onBeforeAction()
CleanEthalon::__construct()
CleanEthalon::cleanLangFile()
CleanEthalon::getProgressParameterOptionName()
CleanEthalon::run()
CleanEthalon::runClearing()
Collect::__construct()
Collect::getProgressParameterOptionName()
Collect::lookThroughLangFolder()
Collect::run()
Collect::runCollecting()
CollectFileIndex::__construct()
CollectFileIndex::run()
CollectFileIndex::runIndexing()
CollectLangPath::__construct()
CollectLangPath::run()
CollectLangPath::runIndexing()
CollectPathIndex::__construct()
CollectPathIndex::run()
CollectPathIndex::runIndexing()
CollectPhraseIndex::__construct()
CollectPhraseIndex::run()
CollectPhraseIndex::runIndexing()
Collector::cancelAction()
Collector::configureActions()
ComponentBase::&getParams()
ComponentBase::&getResult()
ComponentBase::checkModuleAvailability()
ComponentBase::checkPermissionEdit()
ComponentBase::checkPermissionEditPhp()
ComponentBase::checkPermissionView()
ComponentBase::clearSavedOptions()
ComponentBase::detectPathBack()
ComponentBase::detectStartingPath()
ComponentBase::detectTabId()
ComponentBase::generateChainLinks()
ComponentBase::getApplication()
ComponentBase::getCompatibleLanguages()
ComponentBase::getLanguages()
ComponentBase::getLanguagesTitle()
ComponentBase::getUser()
ComponentBase::hasUserPermissionEdit()
ComponentBase::hasUserPermissionEditSource()
ComponentBase::hasUserPermissionView()
ComponentBase::isAjaxRequest()
ComponentBase::prepareParams()
ComponentBase::sendJsonResponse()
Config::allowCalculateDifference()
Config::getAliasEncoding()
Config::getAllowedEncodings()
Config::getAvailableDefaultLanguages()
Config::getAvailableLanguages()
Config::getBackupFolder()
Config::getCultureEncoding()
Config::getDefaultLanguages()
Config::getDefaultPath()
Config::getEnabledLanguages()
Config::getEncodingName()
Config::getInitPath()
Config::getLanguages()
Config::getLanguagesTitle()
Config::getModuleDefault()
Config::getNonSortPhraseLanguages()
Config::getOption()
Config::getTranslationRepositoryLanguages()
Config::isUtfMode()
Config::needToBackUpFiles()
Config::needToSortPhrases()
Controller::hasErrors()
Controller::processBeforeAction()
Csv::cancelAction()
Csv::configureActions()
Csv::detectAction()
Csv::downloadAction()
Csv::exportAction()
Csv::finalizeAction()
Csv::generateDownloadLink()
Csv::importAction()
Csv::indexAction()
Csv::init()
Csv::moveUploadedFile()
Csv::purgeAction()
Csv::uploadAction()
CsvFile::checkUtf8Bom()
CsvFile::close()
CsvFile::fetch()
CsvFile::fetchDelimiter()
CsvFile::fetchWidth()
CsvFile::getFirstHeader()
CsvFile::getPos()
CsvFile::hasUtf8Bom()
CsvFile::incrementCurrentPosition()
CsvFile::moveFirst()
CsvFile::openLoad()
CsvFile::openWrite()
CsvFile::prefaceWithUtf8Bom()
CsvFile::put()
CsvFile::read()
CsvFile::setFieldDelimiter()
CsvFile::setFieldsType()
CsvFile::setFirstHeader()
CsvFile::setPos()
CsvFile::setRowDelimiter()
CsvFile::setUtf8Bom()
CsvFile::setWidthMap()
CsvFile::write()
Directory::__construct()
Directory::copy()
Directory::copyLangOnly()
Directory::generateTemporalDirectory()
Directory::wipe()
ExportAction::__construct()
ExportAction::configureExportCsvFile()
ExportAction::createExportTempFile()
ExportAction::generateExportFileName()
ExportAction::getDownloadingParameters()
ExportAction::lookThroughLangFolder()
ExportAction::mergeLangFiles()
ExportFile::run()
ExportFileList::__construct()
ExportFileList::run()
ExportFileList::runExporting()
ExportFileSearch::__construct()
ExportFileSearch::processFilter()
ExportFileSearch::run()
ExportFileSearch::runExporting()
ExportPath::__construct()
ExportPath::run()
ExportPath::runExporting()
ExportPhraseSearch::__construct()
ExportPhraseSearch::processFilter()
ExportPhraseSearch::run()
ExportPhraseSearch::runExporting()
Extract::__construct()
Extract::getProgressParameterOptionName()
Extract::run()
File::backup()
File::cancelAction()
File::close()
File::configureActions()
File::count()
File::countDeficiency()
File::countExcess()
File::current()
File::deletePhraseIndex()
File::generateTemporalFile()
File::getCodes()
File::getContents()
File::getFileIndex()
File::getLangId()
File::getOperatingEncoding()
File::getPhraseIndexCollection()
File::getPhrases()
File::getSourceEncoding()
File::instantiateByIndex()
File::instantiateByIoFile()
File::instantiateByPath()
File::key()
File::lint()
File::load()
File::next()
File::offsetExists()
File::offsetGet()
File::offsetSet()
File::offsetUnset()
File::openLoad()
File::openWrite()
File::putContents()
File::read()
File::removeEmptyParents()
File::rewind()
File::save()
File::setLangId()
File::setOperatingEncoding()
File::setSourceEncoding()
File::sortPhrases()
File::updatePhraseIndex()
File::valid()
File::write()
FileDiffCollection::collect()
FileDiffCollection::configure()
FileDiffCollection::countItemsToProcess()
FileDiffCollection::purge()
FileDiffTable::getCollectionClass()
FileDiffTable::getMap()
FileDiffTable::getObjectClass()
FileDiffTable::getTableName()
FileDiffTable::processFilter()
FileDiffTable::purge()
FileIndex::createByFile()
FileIndexCollection::collect()
FileIndexCollection::configure()
FileIndexCollection::countItemsToProcess()
FileIndexCollection::purge()
FileIndexCollection::unvalidate()
FileIndexSearch::getCount()
FileIndexSearch::getList()
FileIndexSearch::processParams()
FileIndexSearch::query()
FileIndexTable::getCollectionClass()
FileIndexTable::getMap()
FileIndexTable::getObjectClass()
FileIndexTable::getTableName()
FileIndexTable::processFilter()
FileIndexTable::purge()
FileSystemHelper::getFileList()
FileSystemHelper::getFolderList()
Filter::__construct()
Filter::__get()
Filter::__isset()
Filter::__set()
Filter::__unset()
Filter::count()
Filter::current()
Filter::getTabId()
Filter::key()
Filter::next()
Filter::offsetExists()
Filter::offsetGet()
Filter::offsetSet()
Filter::offsetUnset()
Filter::restore()
Filter::rewind()
Filter::serialize()
Filter::store()
Filter::unserialize()
Filter::valid()
GetLangDirs()
GetPhraseCounters()
GetTCSVArray()
GetTDirList()
GetTLangFiles()
Grabber::cancelAction()
Grabber::configureActions()
Grabber::downloadAction()
Grabber::finalizeAction()
Grabber::getMaxUploadSize()
Grabber::getProgressParameterOptionName()
Grabber::init()
Grabber::moveUploadedFile()
Grabber::purgeAction()
Grabber::uploadAction()
ImportCsv::__construct()
ImportCsv::run()
ImportCsv::runImporting()
ImportCsv::verifyCsvFile()
IndexCommand::configure()
IndexCommand::execute()
IndexCsv::__construct()
IndexCsv::run()
IndexCsv::runIndexing()
IndexCsv::verifyCsvFile()
Operation::__construct()
Operation::deleteLangFile()
Operation::deletePhraseIndex()
Operation::lookThroughLangFolder()
Operation::updateLangFile()
Operation::updatePhraseIndex()
Pack::__construct()
Pack::generateDownloadLink()
Pack::generateExportFileName()
Pack::getDownloadingParameters()
Pack::getProgressParameterOptionName()
Pack::run()
Pack::runPacking()
Panel::onPanelCreate()
Path::addLangId()
Path::checkCreatePath()
Path::extractLangId()
Path::isLangDir()
Path::removeLangId()
Path::replaceLangId()
Path::secure()
Path::tidy()
PathIndex::detectAssignment()
PathIndex::detectModuleId()
PathIndex::loadByPath()
PathIndexCollection::arrangeTree()
PathIndexCollection::collect()
PathIndexCollection::collectAssignment()
PathIndexCollection::collectFilePath()
PathIndexCollection::collectModuleAssignment()
PathIndexCollection::configure()
PathIndexCollection::constructAncestorsByPath()
PathIndexCollection::countItemsToProcess()
PathIndexCollection::getAncestors()
PathIndexCollection::getImmediateChildren()
PathIndexCollection::purge()
PathIndexCollection::unvalidate()
PathIndexCollection::validate()
PathIndexTable::getCollectionClass()
PathIndexTable::getMap()
PathIndexTable::getObjectClass()
PathIndexTable::getTableName()
PathIndexTable::onAfterAdd()
PathIndexTable::onAfterDelete()
PathIndexTable::processFilter()
PathIndexTable::purge()
PathLangCollection::collect()
PathLangCollection::configure()
PathLangCollection::countItemsToProcess()
PathLangCollection::purge()
PathLangTable::getMap()
PathLangTable::getTableName()
PathLangTable::purge()
PathTreeTable::getMap()
PathTreeTable::getTableName()
PathTreeTable::processFilter()
PathTreeTable::purge()
Permission::canEdit()
Permission::canEditSource()
Permission::canView()
Permission::isAdmin()
Permission::isAllowPath()
PhraseIndexCollection::collect()
PhraseIndexCollection::countItemsToProcess()
PhraseIndexCollection::getPhraseByCode()
PhraseIndexCollection::purge()
PhraseIndexSearch::getCount()
PhraseIndexSearch::getList()
PhraseIndexSearch::processParams()
PhraseIndexSearch::query()
PhraseIndexTable::getCollectionClass()
PhraseIndexTable::getMap()
PhraseIndexTable::getObjectClass()
PhraseIndexTable::getTableName()
PhraseIndexTable::processFilter()
PhraseIndexTable::purge()
Purge::run()
SaveFile::generateFieldName()
SaveFile::run()
SaveSource::run()
SaveTCSVFile()
Settings::count()
Settings::current()
Settings::getOptions()
Settings::instantiateByPath()
Settings::key()
Settings::load()
Settings::next()
Settings::offsetExists()
Settings::offsetGet()
Settings::offsetSet()
Settings::offsetUnset()
Settings::rewind()
Settings::save()
Settings::valid()
StringHelper::changeCaseToLower()
StringHelper::changeCaseToUpper()
StringHelper::getLength()
StringHelper::getPosition()
StringHelper::getSubstring()
StringHelper::htmlSpecialChars()
StringHelper::validateUtf8OctetSequences()
TR_BACKUP()
TSEARCH()
Timer::__construct()
Timer::getTimeLimit()
Timer::hasTimeLimitReached()
Timer::setTimeLimit()
Timer::startTimer()
WipeEmpty::__construct()
WipeEmpty::getProgressParameterOptionName()
WipeEmpty::removeEmptyParents()
WipeEmpty::run()
WipeEmpty::runWiping()
addError()
addErrors()
bulkAdd()
bulkDelete()
bulkUpdate()
clearProgressParameters()
declareAccomplishment()
getErrorByCode()
getErrors()
getFirstError()
getLastError()
getProgressParameterOptionName()
getProgressParameters()
hasError()
hasErrors()
hasProcessCompleted()
hasTimeLimitReached()
instanceTimer()
keepField()
onBeforeRun()
performStep()
prepareWhere()
removePhrasesByMasterFile()
restoreProgressParameters()
saveProgressParameters()
saveTranslationFile()
startTimer()
translate::DoInstall()
translate::DoUninstall()
translate::InstallDB()
translate::InstallEvents()
translate::InstallFiles()
translate::OnGetTableSchema()
translate::UnInstallDB()
translate::UnInstallEvents()
translate::UnInstallFiles()
translate::__construct()