PHP 클래스 Yosymfony\Spress\Scaffolding\PluginGenerator

저자: Victor Puertas ([email protected])
상속: extends Generator
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$author
$commandDescription
$commandHelp
$commandName
$description
$dirctoryName
$email
$license
$licenses
$name
$namespace
$targetDir

공개 메소드들

메소드 설명
__construct ( string $targetDir, string $name ) Constructor.
generate ( ) : array Generates a plugin.
getPluginDirName ( ) : string Gets the plugin directory.
setAuthor ( string $name, string $email = '' ) Sets the author of the plugin.
setCommandData ( string $name, string $description = '', $help = '' ) Sets the command's data in case of command plugin.
setDescription ( string $value ) Sets the description of the plugin.
setLicense ( $name ) Sets the license of the plugin. MIT by default.
setNamespace ( string $value ) Sets the namespace of the plugin.

보호된 메소드들

메소드 설명
getClassname ( string $name ) : string Gets the classname.
getLicenseFile ( string $licenseName ) : string Gets the license filename.
getNamespacePsr4 ( string $namespace ) : string Gets the namepspace for PSR-4.
getPluginDir ( string $name ) : string Gets the plugin directory.
getPluginFilename ( string $name ) : string Gets the plugin filename.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $targetDir, string $name )
$targetDir string The target dir
$name string The name of the plugin. Could you follow the pattern "vendor/class-name"

generate() 공개 메소드

Generates a plugin.
public generate ( ) : array
리턴 array

getClassname() 보호된 메소드

Gets the classname.
protected getClassname ( string $name ) : string
$name string
리턴 string

getLicenseFile() 보호된 메소드

Gets the license filename.
protected getLicenseFile ( string $licenseName ) : string
$licenseName string
리턴 string Filename or empty-string if not exists

getNamespacePsr4() 보호된 메소드

Gets the namepspace for PSR-4.
protected getNamespacePsr4 ( string $namespace ) : string
$namespace string
리턴 string

getPluginDir() 보호된 메소드

Gets the plugin directory.
protected getPluginDir ( string $name ) : string
$name string
리턴 string

getPluginDirName() 공개 메소드

Gets the plugin directory.
public getPluginDirName ( ) : string
리턴 string

getPluginFilename() 보호된 메소드

Gets the plugin filename.
protected getPluginFilename ( string $name ) : string
$name string
리턴 string

setAuthor() 공개 메소드

Sets the author of the plugin.
public setAuthor ( string $name, string $email = '' )
$name string The name of the author
$email string The Email of the author

setCommandData() 공개 메소드

Sets the command's data in case of command plugin.
public setCommandData ( string $name, string $description = '', $help = '' )
$name string The name of the command
$description string The description of the command

setDescription() 공개 메소드

Sets the description of the plugin.
public setDescription ( string $value )
$value string

setLicense() 공개 메소드

Sets the license of the plugin. MIT by default.
public setLicense ( $name )

setNamespace() 공개 메소드

Sets the namespace of the plugin.
public setNamespace ( string $value )
$value string

프로퍼티 상세

$author 보호되어 있는 프로퍼티

protected $author

$commandDescription 보호되어 있는 프로퍼티

protected $commandDescription

$commandHelp 보호되어 있는 프로퍼티

protected $commandHelp

$commandName 보호되어 있는 프로퍼티

protected $commandName

$description 보호되어 있는 프로퍼티

protected $description

$dirctoryName 보호되어 있는 프로퍼티

protected $dirctoryName

$email 보호되어 있는 프로퍼티

protected $email

$license 보호되어 있는 프로퍼티

protected $license

$licenses 보호되어 있는 프로퍼티

protected $licenses

$name 보호되어 있는 프로퍼티

protected $name

$namespace 보호되어 있는 프로퍼티

protected $namespace

$targetDir 보호되어 있는 프로퍼티

protected $targetDir