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.
상속: implements Components_Config
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

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