PHP Класс AssetCompress\AssetScanner

Наследование: extends MiniAsset\AssetScanner
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$theme string The current theme if there is one.

Открытые методы

Метод Описание
__construct ( array $paths, string $theme = null ) Constructor.

Защищенные методы

Метод Описание
_expandPlugin ( string $file ) : string Resolve a plugin file to its full path.
_expandPrefix ( string $path ) : string Resolve a plugin or theme path into the file path without the search paths.
_expandTheme ( string $file ) : string Resolve a themed file to its full path. The file will be found on the current theme's path.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( array $paths, string $theme = null )
$paths array The paths to scan.
$theme string The current theme.

_expandPlugin() защищенный метод

Resolve a plugin file to its full path.
protected _expandPlugin ( string $file ) : string
$file string The theme file to find.
Результат string The expanded path

_expandPrefix() защищенный метод

Resolve a plugin or theme path into the file path without the search paths.
protected _expandPrefix ( string $path ) : string
$path string Path to resolve
Результат string resolved path

_expandTheme() защищенный метод

Resolve a themed file to its full path. The file will be found on the current theme's path.
protected _expandTheme ( string $file ) : string
$file string The theme file to find.
Результат string The expanded path

Описание свойств

$theme защищенное свойство

The current theme if there is one.
protected string $theme
Результат string