PHP Class Jarves\Configuration\Options

Inheritance: extends Model
ファイルを表示 Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$keyName
$optionName
$options array
$rootName

Public Methods

Method Description
extractOptions ( DOMNode $child, array &$options )
fromArray ( $values, $key = null )
getLength ( )
getOption ( string $key ) : mixed
getOptions ( ) : array
removeOption ( string $key )
setOption ( string $key, $val )
setOptions ( array $options )
setupObject ( $jarves = null )
toArray ( $element = NULL ) : array

Protected Methods

Method Description
appendOptions ( array $values, DOMNode $node, string $name = null )
appendOptionsXml ( DOMNode $node, boolean $printDefaults = false )

Method Details

appendOptions() protected method

protected appendOptions ( array $values, DOMNode $node, string $name = null )
$values array
$node DOMNode
$name string

appendOptionsXml() protected method

protected appendOptionsXml ( DOMNode $node, boolean $printDefaults = false )
$node DOMNode
$printDefaults boolean

extractOptions() public method

public extractOptions ( DOMNode $child, array &$options )
$child DOMNode
$options array

fromArray() public method

public fromArray ( $values, $key = null )

getLength() public method

public getLength ( )

getOption() public method

public getOption ( string $key ) : mixed
$key string
return mixed

getOptions() public method

public getOptions ( ) : array
return array

removeOption() public method

public removeOption ( string $key )
$key string

setOption() public method

public setOption ( string $key, $val )
$key string
$val

setOptions() public method

public setOptions ( array $options )
$options array

setupObject() public method

public setupObject ( $jarves = null )

toArray() public method

public toArray ( $element = NULL ) : array
$element
return array

Property Details

$keyName protected_oe property

protected $keyName

$optionName protected_oe property

protected $optionName

$options protected_oe property

protected array $options
return array

$rootName protected_oe property

protected $rootName