|
const | JS = 'js' |
|
const | CSS = 'css' |
|
const | LAYOUT = 'layout' |
|
const | LANG = 'lang' |
|
См. определение в файле asset.php строка 15
◆ __construct()
__construct |
( |
| $path = null | ) |
|
Asset constructor.
- Аргументы
-
string | null | $path | Path to resource. |
См. определение в файле asset.php строка 96
◆ create()
Create asset instance.
- Аргументы
-
string | $path | Relative path to asset. |
- Возвращает
- CssAsset|JsAsset|LangAsset|LayoutAsset
- Исключения
-
См. определение в файле asset.php строка 38
◆ detectType()
static detectType |
( |
| $path | ) |
|
|
static |
Detect type by path.
- Аргументы
-
string | $path | Relative path to asset. |
- Возвращает
- null|string
См. определение в файле asset.php строка 72
◆ getAbsolutePath()
static getAbsolutePath |
( |
| $path | ) |
|
|
staticprotected |
Get absolute path.
- Аргументы
-
string | $path | Relative path. |
- Возвращает
- string
См. определение в файле asset.php строка 279
◆ getContent()
Get content.
- Возвращает
- string|null
Переопределяется в LangAsset.
См. определение в файле asset.php строка 207
◆ getName()
Get name.
- Возвращает
- string|null
См. определение в файле asset.php строка 197
◆ getPath()
Get path.
- Возвращает
- string
См. определение в файле asset.php строка 119
◆ getType()
Get type.
- Возвращает
- string
См. определение в файле asset.php строка 109
◆ getTypeList()
Get type list.
- Возвращает
- array
См. определение в файле asset.php строка 61
◆ getUri()
Get uri.
- Возвращает
- string|null
См. определение в файле asset.php строка 152
◆ isExists()
Return true if asset exists.
- Аргументы
-
string | $path | Relative path. |
- Возвращает
- string
Переопределяется в LangAsset.
См. определение в файле asset.php строка 268
◆ setContent()
Set content.
- Аргументы
-
string | array | $content | Content. |
- Возвращает
- $this
См. определение в файле asset.php строка 186
◆ setPath()
Set path to resource.
- Аргументы
-
- Возвращает
- $this
См. определение в файле asset.php строка 130
◆ setUri()
Set uri.
- Аргументы
-
- Возвращает
- $this
См. определение в файле asset.php строка 174
◆ $content
◆ $path
◆ $type
◆ $uri
◆ CSS
◆ JS
◆ LANG
◆ LAYOUT