1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Path
Граф наследования:Path:
Path

Открытые статические члены

static tidy (string $path)
static secure (string $path)
static isLangDir (string $path, bool $additionalCheck=false)
static extractLangId (string $path)
static replaceLangId (string $path, string $langId)
static removeLangId (string $path, ?array $langs=null)
static addLangId (string $path, string $langId, ?array $langs=null)
static checkCreatePath (string $path)
static isPhpFile (string $path, bool $checkExistence=false)
Открытые статические члены унаследованные от Path
static normalize ($path)
static getExtension ($path)
static getName ($path)
static getDirectory ($path)
static convertLogicalToPhysical ($path)
static convertPhysicalToLogical ($path)
static convertLogicalToUri ($path)
static convertPhysicalToUri ($path)
static convertUriToPhysical ($path)
static combine (... $args)
static convertRelativeToAbsolute ($relativePath)
static convertSiteRelativeToAbsolute ($relativePath, $site=null)
static validate ($path)
static validateFilename ($filename)
static replaceInvalidFilename ($filename, $callback)
static randomizeInvalidFilename ($filename)
static isAbsolute ($path)

Дополнительные унаследованные члены

Поля данных унаследованные от Path
const DIRECTORY_SEPARATOR = '/'
const INVALID_FILENAME_CHARS = "\\/:*?\"'<>|~#&;"
const INVALID_FILENAME_BYTES = "\xE2\x80\xAE"
Защищенные статические члены унаследованные от Path
static truncateIndexFile ($path)
static getLogicalEncoding ()
static getPhysicalEncoding ()
static validateCommon ($path)
static getDirectoryIndexArray ()
Статические защищенные данные унаследованные от Path
static $physicalEncoding = ''
static $logicalEncoding = ''

Подробное описание

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

Методы

◆ addLangId()

addLangId ( string $path,
string $langId,
?array $langs = null )
static

Adds language folder and code into path.

Аргументы
string$pathPath to check.
string$langIdLanguage code to add.
string[]$langsLanguages list.
Возвращает
string

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

◆ checkCreatePath()

checkCreatePath ( string $path)
static

Checks existence or creates of the directory path.

Аргументы
string$pathPath to check.
Возвращает
bool

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

◆ extractLangId()

extractLangId ( string $path)
static

Detects and returns language code from a path.

Аргументы
string$pathPath to check.
Возвращает
string|null

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

◆ isLangDir()

isLangDir ( string $path,
bool $additionalCheck = false )
static

Checks if it is translation folder.

Аргументы
string$pathPath to check.
bool$additionalCheckPreforms additional check.
Возвращает
bool

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

◆ isPhpFile()

isPhpFile ( string $path,
bool $checkExistence = false )
static

Checks if it is php file.

Аргументы
string$pathPath to check.
bool$cechExistence
Возвращает
bool

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

◆ removeLangId()

removeLangId ( string $path,
?array $langs = null )
static

Removes language folder and code from path.

Аргументы
string$pathPath to check.
string[]$langsLanguages list.
Возвращает
string

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

◆ replaceLangId()

replaceLangId ( string $path,
string $langId )
static

Replaces language code in the path.

Аргументы
string$pathPath to check.
string$langIdLanguage code to add.
Возвращает
string

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

◆ secure()

secure ( string $path)
static

Removes unsecured path parts.

Аргументы
string$pathPath to check.
Возвращает
string

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

◆ tidy()

tidy ( string $path)
static

Normalizes path splitter symbols.

Аргументы
string$pathPath to check.
Возвращает
string

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/translate/lib/io/path.php