1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Пространство имен Bitrix\Translate

Пространства имен

namespace  Cli
namespace  Controller
namespace  Index
namespace  IO
namespace  Text
namespace  Ui
namespace  Update

Структуры данных

class  ComponentBase
class  Config
class  File
class  Filter
interface  IErrorable
class  Permission
class  Settings

Функции

 addError (Main\Error $error)
 addErrors (array $errors)
 getErrors ()
 getErrorByCode ($code)
 getLastError ()
 getFirstError ()
 hasErrors ()
 hasError ($code)
 getContents ()
 putContents ($data, $flags=self::REWRITE)
 countExcess (self $ethalon)
 countDeficiency (self $ethalon)
 addWarning (Main\Error $error)
 getWarnings ()
 hasWarnings ()
 getLastWarning ()
 getFirstWarning ()

Переменные

const ENCODINGS
const IGNORE_FS_NAMES
const IGNORE_BX_NAMES
const IGNORE_LANG_NAMES
const IGNORE_MODULE_NAMES
const SUPD_LANG_DATE_MARK = '/main/lang/#LANG_ID#/supd_lang_date.dat'
const ASSIGNMENT_TYPES
trait Error
return $this messagesCount
trait Warning

Функции

◆ addError()

addError ( Main\Error $error)
final

Adds error to error collection.

Аргументы
Main\Error$errorError.
Возвращает
$this

См. определение в файле error.php строка 22

◆ addErrors()

addErrors ( array $errors)
final

Adds list of errors to error collection.

Аргументы
Main\Error[]$errorsErrors.
Возвращает
$this

См. определение в файле error.php строка 41

◆ addWarning()

addWarning ( Main\Error $error)
final

Adds warning to collection.

Аргументы
Main\Error$errorError.
Возвращает
$this

См. определение в файле warning.php строка 22

◆ countDeficiency()

countDeficiency ( self $ethalon)

Compares two files and returns deficiency amount of phrases.

Аргументы
self$ethalonFile to compare.
Возвращает
int

См. определение в файле file.php строка 1284

◆ countExcess()

countExcess ( self $ethalon)

Compares two files and returns excess amount of phrases.

Аргументы
self$ethalonFile to compare.
Возвращает
int

См. определение в файле file.php строка 1272

◆ getContents()

getContents ( )

Returns string fiile content.

Возвращает
string|bool

См. определение в файле file.php строка 1201

◆ getErrorByCode()

getErrorByCode ( $code)
final

Getting once error with the necessary code.

Аргументы
string | int$codeCode of error.
Возвращает
Main\Error|null

См. определение в файле error.php строка 75

◆ getErrors()

getErrors ( )
final

Getting array of errors.

Возвращает
Main\Error[]

См. определение в файле error.php строка 58

◆ getFirstError()

getFirstError ( )
final

Returns first error from list.

Возвращает
Main\Error|null

См. определение в файле error.php строка 111

◆ getFirstWarning()

getFirstWarning ( )
final

Returns first warning from list.

Возвращает
Main\Error|null

См. определение в файле warning.php строка 90

◆ getLastError()

getLastError ( )
final

Returns last error from list.

Возвращает
Main\Error|null

См. определение в файле error.php строка 90

◆ getLastWarning()

getLastWarning ( )
final

Returns last warning from list.

Возвращает
Main\Error|null

См. определение в файле warning.php строка 69

◆ getWarnings()

getWarnings ( )
final

Getting array of warnings.

Возвращает
Main\Error[]

См. определение в файле warning.php строка 39

◆ hasError()

hasError ( $code)
final

Returns an error with the necessary code.

Аргументы
string | int$codeThe code of the error.
Возвращает
boolean

См. определение в файле error.php строка 146

◆ hasErrors()

hasErrors ( )
final

Checks if error occurred.

Возвращает
boolean

См. определение в файле error.php строка 130

◆ hasWarnings()

hasWarnings ( )
final

Checks if warning occurred.

Возвращает
boolean

См. определение в файле warning.php строка 54

◆ putContents()

putContents ( $data,
$flags = self::REWRITE )

Puts data sting into file.

Аргументы
string$dataData to save.
int$flagsFlag to operate previous content
См. также
Main\IO\File::REWRITE | Main\IO\File::APPEND.
Возвращает
bool|int
Исключения
Main

IO\FileNotFoundException

Исключения
Main

IO\IoException

См. определение в файле file.php строка 1229

Переменные

◆ ASSIGNMENT_TYPES

const ASSIGNMENT_TYPES
Инициализатор
'modules',
'activities',
'components',
'public',
'templates',
'wizards',
'gadgets',
'js',
'blocks',
'mobileapp',
'themes',
'admin',
'public_bitrix24',
'delivery',
'paysystem',
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле autoload.php строка 89

◆ ENCODINGS

const ENCODINGS
Инициализатор
'utf-8',
'windows-1250',
'windows-1251',
'windows-1252',
'windows-1253',
'windows-1254',
'windows-1255',
'windows-1256',
'windows-1257',
'windows-1258',
'iso-8859-1',
'iso-8859-2',
'iso-8859-3',
'iso-8859-4',
'iso-8859-5',
'iso-8859-6',
'iso-8859-7',
'iso-8859-8',
'iso-8859-9',
'iso-8859-10',
'iso-8859-13',
'iso-8859-15',
)

См. определение в файле autoload.php строка 16

◆ Error

trait Error
Инициализатор
{
protected $errorCollection

\Translate\IErrorable

См. определение в файле error.php строка 10

◆ IGNORE_BX_NAMES

const IGNORE_BX_NAMES
Инициализатор
'/bitrix/backup',
'/bitrix/updates',
'/bitrix/updates_enc',
'/bitrix/updates_enc5',
'/bitrix/help',
'/bitrix/cache',
'/bitrix/cache_image',
'/bitrix/managed_cache',
'/bitrix/stack_cache',
'/bitrix/tmp',
'/bitrix/html_pages',
'/bitrix/vendor',
'/bitrix/css',
'/bitrix/fonts',
'/bitrix/images',
'/bitrix/routes',
'/bitrix/sounds',
'/upload',
)

См. определение в файле autoload.php строка 56

◆ IGNORE_FS_NAMES

const IGNORE_FS_NAMES
Инициализатор
'.',
'..',
'.hg',
'.git',
'.svn',
'.vs',
'.vscode',
'.idea',
'.DS_Store',
'.htaccess',
'.access.php',
'.settings.php',
)

См. определение в файле autoload.php строка 41

◆ IGNORE_LANG_NAMES

const IGNORE_LANG_NAMES
Инициализатор
'exec'
)

См. определение в файле autoload.php строка 77

◆ IGNORE_MODULE_NAMES

const IGNORE_MODULE_NAMES
Инициализатор
'dev',
'meta',
'tests',
)

См. определение в файле autoload.php строка 81

◆ messagesCount

return $this messagesCount

См. определение в файле file.php строка 1189

◆ SUPD_LANG_DATE_MARK

const SUPD_LANG_DATE_MARK = '/main/lang/#LANG_ID#/supd_lang_date.dat'

См. определение в файле autoload.php строка 87

◆ Warning

trait Warning
Инициализатор
{
protected $warningCollection

Warning collection.

См. определение в файле warning.php строка 10