PHP Класс AssetCompress\Shell\AssetCompressShell

Assists in clearing and creating the build files this plugin makes.
Наследование: extends Cake\Console\Shell
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$tasks array Tasks used by this shell.

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

Свойство Тип Описание
$config MiniAsset\AssetConfig Config instance
$factory AssetCompress\Factory Factory instance.

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

Метод Описание
build ( ) : void Builds all the files defined in the build file.
clear ( ) : void Clears the build directories for both CSS and JS
clearBuildTs ( ) : void Clears the build timestamp. Try to clear it out even if they do not have ts file enabled in the INI.
getOptionParser ( ) : Cake\Console\ConsoleOptionParser get the option parser.
setConfig ( AssetConfig $config ) : void Set the config object.
startup ( ) : void Create the configuration object used in other classes.

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

Метод Описание
_clearBuilds ( ) : void clear the builds for a specific extension.
_clearPath ( string $path, array $themes, array $targets ) : void Clear a path of build targets.

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

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

clear the builds for a specific extension.
protected _clearBuilds ( ) : void
Результат void

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

Clear a path of build targets.
protected _clearPath ( string $path, array $themes, array $targets ) : void
$path string The root path to clear.
$themes array The themes to clear.
$targets array The build targets to clear.
Результат void

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

Builds all the files defined in the build file.
public build ( ) : void
Результат void

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

Clears the build directories for both CSS and JS
public clear ( ) : void
Результат void

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

Build timestamp file is only created when build() is run from this shell
public clearBuildTs ( ) : void
Результат void

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

get the option parser.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
Результат Cake\Console\ConsoleOptionParser

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

Set the config object.
public setConfig ( AssetConfig $config ) : void
$config MiniAsset\AssetConfig The config instance.
Результат void

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

Create the configuration object used in other classes.
public startup ( ) : void
Результат void

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

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

Config instance
protected AssetConfig,MiniAsset $config
Результат MiniAsset\AssetConfig

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

Factory instance.
protected Factory,AssetCompress $factory
Результат AssetCompress\Factory

$tasks публичное свойство

Tasks used by this shell.
public array $tasks
Результат array