См. определение в файле resourcecollection.php строка 12
◆ __construct()
◆ add()
add |
( |
string | $path, |
|
|
string | $type, |
|
|
int | $location ) |
◆ addString()
addString |
( |
string | $string | ) |
|
Save asset string in collection (like a <script> or <link>)
- Аргументы
-
См. определение в файле resourcecollection.php строка 82
◆ getNormalized()
◆ getPathes()
◆ getSliceByFilter()
getSliceByFilter |
( |
| $field, |
|
|
| $value ) |
|
protected |
Create new ResourceCollection object by filter
- Аргументы
-
$field | - field name |
$value | - value of field |
- Возвращает
- ResourceCollection
См. определение в файле resourcecollection.php строка 141
◆ getSliceByLocation()
getSliceByLocation |
( |
int | $location | ) |
|
Create new ResourceCollection object by location
- Аргументы
-
- Возвращает
- ResourceCollection
См. определение в файле resourcecollection.php строка 129
◆ getStrings()
◆ isEmpty()
Return true is no added resources and no added strings
- Возвращает
- bool
См. определение в файле resourcecollection.php строка 201
◆ isNeedRaiseLocation()
isNeedRaiseLocation |
( |
string | $path, |
|
|
int | $location ) |
|
protected |
◆ isResourceAdded()
isResourceAdded |
( |
string | $path | ) |
|
|
protected |
◆ remove()
remove |
( |
array|string | $pathes | ) |
|
- Аргументы
-
array | string | $pathes | - string or array of strings pathes to asset to delete from collection |
- Возвращает
- void
См. определение в файле resourcecollection.php строка 103
◆ removeOnce()
removeOnce |
( |
string | $path | ) |
|
|
protected |
◆ sortByLocation()
◆ $order
◆ $resources
◆ $strings
◆ KEY_LOCATION
const KEY_LOCATION = 'location' |
|
protected |
◆ KEY_ORDER
const KEY_ORDER = 'order' |
|
protected |
◆ KEY_PATH
◆ KEY_TYPE
Объявления и описания членов класса находятся в файле: