Documentation

Config

Components_Config:: interface represents a configuration type for the Horde component tool.

Copyright 2009-2020 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

getArguments()  : array<string|int, mixed>
Return the arguments provided by the configuration handlers.
getComponent()  : Component
Return the selected component.
getOption()  : mixed
Return the specified option.
getOptions()  : array<string|int, mixed>
Return the options provided by the configuration handlers.
getPath()  : string
Get the path to the directory of the selected component (in case it was a source component).
setComponent()  : void
Set the selected component.
setOption()  : void
Set an additional option value.
setPath()  : void
Set the path to the directory of the selected source component.
shiftArgument()  : mixed
Shift an element from the argument list.
unshiftArgument()  : void
Unshift an element to the argument list.

Methods

getArguments()

Return the arguments provided by the configuration handlers.

public getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of arguments.

getComponent()

Return the selected component.

public getComponent() : Component
Return values
Component

The selected component.

getOption()

Return the specified option.

public getOption(string $option) : mixed
Parameters
$option : string

The name of the option.

Return values
mixed

The option value or NULL if it is not defined.

getOptions()

Return the options provided by the configuration handlers.

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of options.

getPath()

Get the path to the directory of the selected component (in case it was a source component).

public getPath() : string
Return values
string

The path to the component directory.

setComponent()

Set the selected component.

public setComponent(Component $component) : void
Parameters
$component : Component

The selected component.

Return values
void

setOption()

Set an additional option value.

public setOption(string $key, string $value) : void
Parameters
$key : string

The option to set.

$value : string

The value of the option.

Return values
void

setPath()

Set the path to the directory of the selected source component.

public setPath(string $path) : void
Parameters
$path : string

The path to the component directory.

Return values
void

shiftArgument()

Shift an element from the argument list.

public shiftArgument() : mixed
Return values
mixed

The shifted element.

unshiftArgument()

Unshift an element to the argument list.

public unshiftArgument(string $element) : void
Parameters
$element : string

The element to unshift.

Return values
void

Search results