PHP Class MiniAsset\AssetTarget

Is created from configuration data and defines all the properties and aspects of an asset build target.
Exibir arquivo Open project: markstory/mini-asset Class Usage Examples

Protected Properties

Property Type Description
$files array
$filters array
$path string
$paths array
$themed boolean

Public Methods

Method Description
__construct ( string $path, array $files = [], array $filters = [], array $paths = [], boolean $themed = false )
ext ( ) : string
files ( ) : array
filterNames ( ) : array
isThemed ( ) : boolean
modifiedTime ( ) : integer
name ( ) : string
outputDir ( ) : string
path ( ) : string
paths ( ) : array

Method Details

__construct() public method

public __construct ( string $path, array $files = [], array $filters = [], array $paths = [], boolean $themed = false )
$path string The output path or the asset target.
$files array An array of MiniAsset\File\FileInterface
$filters array An array of filter names for this target.
$paths array A list of search paths for this asset. These paths are used by filters that allow additional resources to be included e.g. Sprockets
$themed boolean Whether or not this file should be themed.

ext() public method

public ext ( ) : string
return string

files() public method

public files ( ) : array
return array

filterNames() public method

public filterNames ( ) : array
return array

isThemed() public method

public isThemed ( ) : boolean
return boolean

modifiedTime() public method

public modifiedTime ( ) : integer
return integer

name() public method

public name ( ) : string
return string

outputDir() public method

public outputDir ( ) : string
return string

path() public method

public path ( ) : string
return string

paths() public method

public paths ( ) : array
return array

Property Details

$files protected_oe property

protected array $files
return array

$filters protected_oe property

protected array $filters
return array

$path protected_oe property

protected string $path
return string

$paths protected_oe property

protected array $paths
return array

$themed protected_oe property

protected bool $themed
return boolean