Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс LangAsset
+ Граф наследования:LangAsset:

Открытые члены

 getContent ()
 
 useAllLangs ($use)
 
- Открытые члены унаследованные от Asset
 __construct ($path=null)
 
 getType ()
 
 getPath ()
 
 setPath ($path)
 
 getUri ()
 
 setUri ($uri)
 
 setContent ($content)
 
 getName ()
 

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

static toCamelCase (array $messages)
 
static deletePrefixes (array $messages, array $prefixes)
 
static isExists ($path)
 
- Открытые статические члены унаследованные от Asset
static create ($path)
 
static getTypeList ()
 
static detectType ($path)
 

Защищенные статические члены

static getLanguages ()
 
- Защищенные статические члены унаследованные от Asset
static getAbsolutePath ($path)
 

Защищенные данные

 $type = self::LANG
 
 $useAllLangs = false
 
- Защищенные данные унаследованные от Asset
 $type
 
 $path
 
 $uri
 
 $content
 

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

- Открытые атрибуты унаследованные от Asset
const JS = 'js'
 
const CSS = 'css'
 
const LAYOUT = 'layout'
 
const LANG = 'lang'
 

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

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

Методы

◆ deletePrefixes()

static deletePrefixes ( array $messages,
array $prefixes )
static

Delete prefixes in messages.

Аргументы
array$messagesMessages.
array$prefixesPrefixes.
Возвращает
array

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

◆ getContent()

getContent ( )

Get content.

Возвращает
array

Переопределяет метод предка Asset.

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

◆ getLanguages()

static getLanguages ( )
staticprotected

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

◆ isExists()

static isExists ( $path)
static

Return true if asset exists.

Аргументы
string$pathRelative path.
Возвращает
string

Переопределяет метод предка Asset.

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

◆ toCamelCase()

static toCamelCase ( array $messages)
static

Convert messages to camel case.

Аргументы
array$messagesMessages.
Возвращает
array

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

◆ useAllLangs()

useAllLangs ( $use)

Use all languages.

Аргументы
bool$useUse.
Возвращает
$this

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

Данные класса

◆ $type

$type = self::LANG
protected

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

◆ $useAllLangs

$useAllLangs = false
protected

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