PHP Class App\Console\Commands\SkinMake

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: xpressengine/xpressengine

Protected Properties

Свойство Type Description
$attr
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$originComposerStr
$signature

Méthodes publiques

Méthode Description
__construct ( Illuminate\Filesystem\Filesystem $files ) Create a new controller creator command instance.
fire ( ) : boolean | null Execute the console command.

Méthodes protégées

Méthode Description
buildCode ( $stub ) : string buildCode
clean ( ) : void clean
confirmInfo ( ) : boolean confirmInfo
copySkinDirectory ( )
findComposer ( ) : string findComposer
getPath ( ) : PluginEntity get skin directory
getPlugin ( ) : PluginEntity getTargetPlugin
getSkinDescription ( $id, PluginEntity $plugin ) : array | string getSkinDescription
getSkinFile ( PluginEntity $plugin, $path, $skinClass ) : array | string getSkinFile
getSkinId ( PluginEntity $plugin, string $class, string $skinTarget ) : array | string getSkinId
getSkinTarget ( ) : array | string getSkinTarget
getSkinTitle ( ) : array | string getSkinTitle
getStub ( $filename ) : string Get the stub file for the generator.
makeDirectory ( $path ) : void makeDirectory
makeSkinClass ( ) makeSkinClass
registerSkin ( ) : integer registerSkin
replaceCode ( &$stub, $search, $replace ) replaceCode
runComposerDump ( $path )

Private Methods

Méthode Description
attr ( $key ) : mixed attr

Method Details

__construct() public méthode

Create a new controller creator command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files )
$files Illuminate\Filesystem\Filesystem

buildCode() protected méthode

buildCode
protected buildCode ( $stub ) : string
$stub
Résultat string

clean() protected méthode

clean
protected clean ( ) : void
Résultat void

confirmInfo() protected méthode

confirmInfo
protected confirmInfo ( ) : boolean
Résultat boolean

copySkinDirectory() protected méthode

protected copySkinDirectory ( )

findComposer() protected méthode

findComposer
protected findComposer ( ) : string
Résultat string

fire() public méthode

Execute the console command.
public fire ( ) : boolean | null
Résultat boolean | null

getPath() protected méthode

get skin directory
protected getPath ( ) : PluginEntity
Résultat Xpressengine\Plugin\PluginEntity

getPlugin() protected méthode

getTargetPlugin
protected getPlugin ( ) : PluginEntity
Résultat Xpressengine\Plugin\PluginEntity

getSkinDescription() protected méthode

getSkinDescription
protected getSkinDescription ( $id, PluginEntity $plugin ) : array | string
$id
$plugin Xpressengine\Plugin\PluginEntity
Résultat array | string

getSkinFile() protected méthode

getSkinFile
protected getSkinFile ( PluginEntity $plugin, $path, $skinClass ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$path
$skinClass
Résultat array | string

getSkinId() protected méthode

getSkinId
protected getSkinId ( PluginEntity $plugin, string $class, string $skinTarget ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$class string
$skinTarget string
Résultat array | string

getSkinTarget() protected méthode

getSkinTarget
protected getSkinTarget ( ) : array | string
Résultat array | string

getSkinTitle() protected méthode

getSkinTitle
protected getSkinTitle ( ) : array | string
Résultat array | string

getStub() protected méthode

Get the stub file for the generator.
protected getStub ( $filename ) : string
Résultat string

makeDirectory() protected méthode

makeDirectory
protected makeDirectory ( $path ) : void
$path
Résultat void

makeSkinClass() protected méthode

makeSkinClass
protected makeSkinClass ( )

registerSkin() protected méthode

registerSkin
protected registerSkin ( ) : integer
Résultat integer

replaceCode() protected méthode

replaceCode
protected replaceCode ( &$stub, $search, $replace )
$stub
$search
$replace

runComposerDump() protected méthode

protected runComposerDump ( $path )

Property Details

$attr protected_oe property

protected $attr

$description protected_oe property

The console command description.
protected string $description
Résultat string

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$originComposerStr protected_oe property

protected $originComposerStr

$signature protected_oe property

protected $signature