PHP Класс Components_Config_Base, horde

Copyright 2009-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])
Наследование: implements Components_Config
Показать файл Открыть проект

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

Свойство Тип Описание
$_arguments array Additional arguments.
$_options array Additional options.

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

Метод Описание
getArguments ( ) : array Return the arguments parsed from the command line.
getComponent ( ) : Components_Component Return the selected component.
getOption ( string $option ) : mixed Return the specified option.
getOptions ( ) : Horde_Argv_Values Return all options.
getPath ( ) : string Get the path to the directory of the selected component (in case it was a source component).
setComponent ( Components_Component $component ) : null Set the path to the component directory.
setOption ( string $key, string $value ) : null Set an additional option value.
setPath ( string $path ) : null Set the path to the directory of the selected source component.
shiftArgument ( ) : mixed Shift an element from the argument list.
unshiftArgument ( string $element ) : null Unshift an element to the argument list.

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

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

Return the arguments parsed from the command line.
public getArguments ( ) : array
Результат array An array of arguments.

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

Return the selected component.
public getComponent ( ) : Components_Component
Результат Components_Component The selected component.

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

Return the specified option.
public getOption ( string $option ) : mixed
$option string The name of the option.
Результат mixed The option value or NULL if it is not defined.

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

Return all options.
public getOptions ( ) : Horde_Argv_Values
Результат Horde_Argv_Values The option values.

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

Get the path to the directory of the selected component (in case it was a source component).
public getPath ( ) : string
Результат string The path to the component directory.

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

Set the path to the component directory.
public setComponent ( Components_Component $component ) : null
$component Components_Component The path to the component directory.
Результат null

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

Set an additional option value.
public setOption ( string $key, string $value ) : null
$key string The option to set.
$value string The value of the option.
Результат null

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

Set the path to the directory of the selected source component.
public setPath ( string $path ) : null
$path string The path to the component directory.
Результат null

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

Shift an element from the argument list.
public shiftArgument ( ) : mixed
Результат mixed The shifted element.

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

Unshift an element to the argument list.
public unshiftArgument ( string $element ) : null
$element string The element to unshift.
Результат null

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

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

Additional arguments.
protected array $_arguments
Результат array

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

Additional options.
protected array $_options
Результат array