PHP 클래스 lithium\console\command\Library

In addition, communicate with the a given server to add plugins and extensions to the current application. Push archived plugins to the server.
상속: extends lithium\console\Command
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$conf string Absolute path to config file.
$f boolean
$filter string Filter used for including files in archive.
$force string Force operation to complete. Typically used for overwriting files.
$password string The password for corresponding username.
$path string Path to where plugins will be installed. Relative to current working directory.
$port string The port for the server.
$server string Server host to query for plugins.
$username string The username for the server authentication.

보호된 프로퍼티들

프로퍼티 타입 설명
$_autoConfig array Auto configuration properties.
$_classes array some classes
$_settings array Holds settings from conf file

공개 메소드들

메소드 설명
archive ( string $name = null, string $result = null ) : boolean Create the Phar::GZ archive from a given directory. If no params, the current working directory is archived with the name of that directory. If one param, the current working directory will be archive with the name provided. If both params, the first is the name or path to the library to archive and the second is the name of the resulting archive
config ( string $key = null, string $value = null, string $options = true ) : void Add configuration and write data in json format.
extract ( string $name = 'new', string $result = null ) : boolean Extract an archive into a path. If one param exists, the app.phar.gz template will be used.
find ( string $type = 'plugins' ) : void List all the plugins and extensions available on the server.
formulate ( string $name = null ) : boolean Create a formula for the given library name
install ( string $name = null ) : boolean Install plugins or extensions to the current application.
push ( string $name = null ) : void Send a plugin archive to the server. The plugin must have a formula.
update ( ) : boolean Update installed plugins. For plugins, runs update commands specified in Formula.

보호된 메소드들

메소드 설명
_init ( ) : void Initialize _settings from --conf.
_toPath ( string $name = null ) : string Take a name and return the path.

메소드 상세

_init() 보호된 메소드

Throws an exception if the command is initialized without a request object which is needed by _toPath() in order to determine the current working directory. This most often happens if the command is inspected using the ReflectionClass.
protected _init ( ) : void
리턴 void

_toPath() 보호된 메소드

Take a name and return the path.
protected _toPath ( string $name = null ) : string
$name string
리턴 string

archive() 공개 메소드

li3 library archive my_archive : archives current working directory to my_archive.phar.gz li3 library archive myapp my_archive : archives 'myapp' to 'my_archive.phar.gz'
public archive ( string $name = null, string $result = null ) : boolean
$name string if only param, the archive name for the current working directory otherwise, The library name or path to the directory to compress.
$result string if exists, The name of the resulting archive
리턴 boolean

config() 공개 메소드

Add configuration and write data in json format.
public config ( string $key = null, string $value = null, string $options = true ) : void
$key string (server)
$value string value of key
$options string [optional]
리턴 void

extract() 공개 메소드

If both parameters exist, then the first will be the template archive and the second will be the name of the extracted archive li3 library extract myapp : uses the command/create/template/app.phar.gz li3 library extract another_archive myapp li3 library extract plugin li3_plugin : uses the command/create/template/plugin.phar.gz
public extract ( string $name = 'new', string $result = null ) : boolean
$name string if only param, command/create/template/app.phar.gz extracted to $name otherwise, the template name or full path to extract `from` phar.gz.
$result string if exists $name is extracted to $result
리턴 boolean

find() 공개 메소드

List all the plugins and extensions available on the server.
public find ( string $type = 'plugins' ) : void
$type string plugins|extensions
리턴 void

formulate() 공개 메소드

Create a formula for the given library name
public formulate ( string $name = null ) : boolean
$name string the library name or full path to the plugin
리턴 boolean

install() 공개 메소드

For plugins, the install commands specified in the formula is run.
public install ( string $name = null ) : boolean
$name string name of plugin to add
리턴 boolean

push() 공개 메소드

Send a plugin archive to the server. The plugin must have a formula.
public push ( string $name = null ) : void
$name string the library name or full path to the archive to send
리턴 void

update() 공개 메소드

Update installed plugins. For plugins, runs update commands specified in Formula.
public update ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Auto configuration properties.
protected array $_autoConfig
리턴 array

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

some classes
protected array $_classes
리턴 array

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

Holds settings from conf file
protected array $_settings
리턴 array

$conf 공개적으로 프로퍼티

Absolute path to config file.
public string $conf
리턴 string

$f 공개적으로 프로퍼티

public bool $f
리턴 boolean

$filter 공개적으로 프로퍼티

Filter used for including files in archive.
public string $filter
리턴 string

$force 공개적으로 프로퍼티

Force operation to complete. Typically used for overwriting files.
public string $force
리턴 string

$password 공개적으로 프로퍼티

The password for corresponding username.
public string $password
리턴 string

$path 공개적으로 프로퍼티

Path to where plugins will be installed. Relative to current working directory.
public string $path
리턴 string

$port 공개적으로 프로퍼티

The port for the server.
public string $port
리턴 string

$server 공개적으로 프로퍼티

Server host to query for plugins.
public string $server
리턴 string

$username 공개적으로 프로퍼티

The username for the server authentication.
public string $username
리턴 string