PHP Class AssetCompress\AssetScanner

Inheritance: extends MiniAsset\AssetScanner
Show file Open project: markstory/asset_compress

Protected Properties

Property Type Description
$theme string The current theme if there is one.

Public Methods

Method Description
__construct ( array $paths, string $theme = null ) Constructor.

Protected Methods

Method 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 method

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

_expandPlugin() protected method

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

_expandPrefix() protected method

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

_expandTheme() protected method

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.
return string The expanded path

Property Details

$theme protected property

The current theme if there is one.
protected string $theme
return string