AbstractCommand
extends Command
in package
Tags
Table of Contents
- $config : CommandConfig
- $output : OutputInterface
- $isVerbose : mixed
- __construct() : mixed
- createDir() : mixed
- helper method to create a new directory. it set the rights on the directory as indicated in the configuration of jelix-scripts.
- createFile() : bool
- helper method to create a file from a template stored in the templates/ directory of jelix-scripts. it set the rights on the file as indicated in the configuration of jelix-scripts.
- execute() : mixed
- verbose() : mixed
Properties
$config
protected
CommandConfig
$config
Tags
$output
protected
OutputInterface
$output
Tags
$isVerbose
private
mixed
$isVerbose
= false
Tags
Methods
__construct()
public
__construct(CommandConfig $config) : mixed
Parameters
- $config : CommandConfig
Tags
Return values
mixed —createDir()
helper method to create a new directory. it set the rights on the directory as indicated in the configuration of jelix-scripts.
protected
createDir(string $dirname) : mixed
Parameters
- $dirname : string
-
the path of the directory
Tags
Return values
mixed —createFile()
helper method to create a file from a template stored in the templates/ directory of jelix-scripts. it set the rights on the file as indicated in the configuration of jelix-scripts.
protected
createFile(string $filename, string $template[, mixed $tplparam = array() ][, mixed $fileType = 'File' ]) : bool
Parameters
- $filename : string
-
the path of the new file created from the template
- $template : string
-
relative path to the templates/ directory, of the template file
- $tplparam : mixed = array()
- $fileType : mixed = 'File'
Tags
Return values
bool —true if it is ok
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
mixed —verbose()
protected
verbose() : mixed