PHP Класс Components_Release_Task_Base, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект

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

Метод Описание
__construct ( Components_Release_Tasks $tasks, Components_Release_Notes $notes, Components_Output $output ) Constructor.
getName ( ) : string Get the name of this task.
run ( &$options ) : null Run the task.
setComponent ( Components_Component $component ) : null Set the component this task should act upon.
setName ( string $name ) : null Set the name of this task.
skip ( array $options ) : boolean Can the task be skipped?
validate ( array $options ) : array Validate the preconditions required for this release task.

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

Метод Описание
getComponent ( ) : Components_Component Get the component this task should act upon.
getNotes ( ) : Components_Release_Notes Get the release notes.
getOutput ( ) : Components_Output Get the output handler.
getTasks ( ) : Components_Release_Tasks Get the tasks handler.
system ( string $call ) : string Run a system call.
systemInDirectory ( string $call, string $target_dir ) : string Run a system call.

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

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

Constructor.
public __construct ( Components_Release_Tasks $tasks, Components_Release_Notes $notes, Components_Output $output )
$tasks Components_Release_Tasks The task handler.
$notes Components_Release_Notes The release notes.
$output Components_Output Accepts output.

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

Get the component this task should act upon.
protected getComponent ( ) : Components_Component
Результат Components_Component The component to be released.

getName() публичный Метод

Get the name of this task.
public getName ( ) : string
Результат string The task name.

getNotes() защищенный Метод

Get the release notes.
protected getNotes ( ) : Components_Release_Notes
Результат Components_Release_Notes The release notes.

getOutput() защищенный Метод

Get the output handler.
protected getOutput ( ) : Components_Output
Результат Components_Output The output handler.

getTasks() защищенный Метод

Get the tasks handler.
protected getTasks ( ) : Components_Release_Tasks
Результат Components_Release_Tasks The release tasks handler.

run() публичный Метод

Run the task.
public run ( &$options ) : null
Результат null

setComponent() публичный Метод

Set the component this task should act upon.
public setComponent ( Components_Component $component ) : null
$component Components_Component The component to be released.
Результат null

setName() публичный Метод

Set the name of this task.
public setName ( string $name ) : null
$name string The task name.
Результат null

skip() публичный Метод

Can the task be skipped?
public skip ( array $options ) : boolean
$options array Additional options.
Результат boolean True if it can be skipped.

system() защищенный Метод

Run a system call.
protected system ( string $call ) : string
$call string The system call to execute.
Результат string The command output.

systemInDirectory() защищенный Метод

Run a system call.
protected systemInDirectory ( string $call, string $target_dir ) : string
$call string The system call to execute.
$target_dir string Run the command in the provided target path.
Результат string The command output.

validate() публичный Метод

Validate the preconditions required for this release task.
public validate ( array $options ) : array
$options array Additional options.
Результат array An empty array if all preconditions are met and a list of error messages otherwise.