PHP Класс FOF30\Generator\Command\Command

Показать файл Открыть проект

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

Свойство Тип Описание
$component string Name of the component
$composer stdClass Parsed contents of composer.json
$input JInput Input coming from the CLI

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

Метод Описание
__construct ( $composer, $input )
execute ( ) This is where we execute the whole logic of the command
setDevServer ( boolean $force = false ) Load the Joomla Configuration from a dev site

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

Метод Описание
getComponent ( object $composer ) : string Get the Component name from the composer file
getComponentName ( $composer ) : string Get the component's name from the user
getViewName ( object $input ) : string Get the view name from the input
in ( ) Proxy the in() call to the application
out ( string $content ) : JApplicationCli Proxy the out() call to the application

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

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

public __construct ( $composer, $input )

execute() абстрактный публичный метод

This is where we execute the whole logic of the command
abstract public execute ( )

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

Get the Component name from the composer file
protected getComponent ( object $composer ) : string
$composer object The composer.json info
Результат string The component name

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

Get the component's name from the user
protected getComponentName ( $composer ) : string
Результат string The name of the component (com_foobar)

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

Get the view name from the input
protected getViewName ( object $input ) : string
$input object The input object
Результат string The view name

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

Proxy the in() call to the application
protected in ( )

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

Proxy the out() call to the application
protected out ( string $content ) : JApplicationCli
$content string Outputs some text on the console
Результат JApplicationCli

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

Load the Joomla Configuration from a dev site
public setDevServer ( boolean $force = false )
$force boolean Should we ask the user even if we have a .fof file?

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

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

Name of the component
protected string $component
Результат string

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

Parsed contents of composer.json
protected stdClass $composer
Результат stdClass

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

Input coming from the CLI
protected JInput $input
Результат JInput