Class ConfigParser
Class ComponentConfigParser Parse the component configuration array into components
Namespace: yii2cdn
Package: common\yii2cdn
Author: Junaid Atari mj.atari@gmail.com
Version: 0.1
Located at src/ConfigParser.php
Package: common\yii2cdn
Author: Junaid Atari mj.atari@gmail.com
Version: 0.1
Located at src/ConfigParser.php
Methods summary
public
|
|
public static
array
|
|
protected static
array
|
#
listFilesByRoot( array $components )
Get the components files list |
protected static
array
|
#
replaceComponentTagsFromFileName( string $fileName, array $indexed )
Replaces @component* tags (case insensitive) from given filename
Tags (starts with @component) > componentUrl(ID) > componentFile(ID/SECTION/FILE_ID) |
public
array|null
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
array
|
|
protected
array
|
|
protected
array|null
|
|
protected
string
|
#
replaceFileNameTags( string $fileName )
Replaces tags (starts with @) from file name > An actual url
> starts with //
> appUrl : current application url
> baseUrl : component base url
> url (*) : * = any url ends with /
> alias (*) : * = CDN custom alias name
> yiiAlias (*) : * = Yii alias name
|
Properties summary
protected static
array
|
$sections
List of sections name |
#
[]
|
protected
string
|
$_id
Component ID |
|
protected
string
|
$baseUrl
CDN Base URL |
|
protected
array
|
$config
Component Configuration |
#
[]
|
protected
array
|
$aliases
CDN Custom aliases |
#
[]
|
protected
array
|
$fileIds
Component file name id Configuration |
#
[]
|
protected
array
|
$filesAttrs
Files attributes |
#
[]
|
protected
array
|
$_props
Files attributes |
#
[]
|
protected
array
|
$defFileAttrs
Predefined file attributes |
#
['id', 'cdn', 'offline', 'options']
|