PHP 클래스 FOF30\Generator\Command\Command

파일 보기 프로젝트 열기: akeeba/fof

보호된 프로퍼티들

프로퍼티 타입 설명
$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