PHP Class AssetCompress\AssetScanner

Inheritance: extends MiniAsset\AssetScanner
Afficher le fichier Open project: markstory/asset_compress

Protected Properties

Свойство Type Description
$theme string The current theme if there is one.

Méthodes publiques

Méthode Description
__construct ( array $paths, string $theme = null ) Constructor.

Méthodes protégées

Méthode Description
_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.

Method Details

__construct() public méthode

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

_expandPlugin() protected méthode

Resolve a plugin file to its full path.
protected _expandPlugin ( string $file ) : string
$file string The theme file to find.
Résultat string The expanded path

_expandPrefix() protected méthode

Resolve a plugin or theme path into the file path without the search paths.
protected _expandPrefix ( string $path ) : string
$path string Path to resolve
Résultat string resolved path

_expandTheme() protected méthode

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.
Résultat string The expanded path

Property Details

$theme protected_oe property

The current theme if there is one.
protected string $theme
Résultat string