Свойство | Тип | Описание | |
---|---|---|---|
$defaultChildren | |||
$defaultValue | |||
$keyAttribute | |||
$minNumberOfElements | |||
$prototype | |||
$removeKeyAttribute |
Метод | Описание | |
---|---|---|
addChild ( Symfony\Component\Config\Definition\NodeInterface $node ) | Disable adding concrete children for prototyped nodes. | |
getDefaultValue ( ) : array | Retrieves the default value. | |
getKeyAttribute ( ) : string | Retrieves the name of the attribute which value should be used as key. | |
getPrototype ( ) : Symfony\Component\Config\Definition\PrototypeNodeInterface | Retrieves the prototype. | |
hasDefaultValue ( ) : boolean | Checks if the node has a default value. | |
setAddChildrenIfNoneSet ( integer | string | array | null $children = ['defaults'] ) | Adds default children when none are set. | |
setDefaultValue ( string $value ) | Sets the default value of this node. | |
setKeyAttribute ( string $attribute, boolean $remove = true ) | Sets the attribute which value is to be used as key. | |
setMinNumberOfElements ( integer $number ) | Sets the minimum number of elements that a prototype based node must contain. By default this is zero, meaning no elements. | |
setPrototype ( Symfony\Component\Config\Definition\PrototypeNodeInterface $node ) | Sets the node prototype. |
Метод | Описание | |
---|---|---|
finalizeValue ( mixed $value ) : mixed | Finalizes the value of this node. | |
mergeValues ( mixed $leftSide, mixed $rightSide ) : mixed | Merges values together. | |
normalizeValue ( mixed $value ) : mixed | Normalizes the value. |
Метод | Описание | |
---|---|---|
getPrototypeForChild ( string $key ) : mixed | Returns a prototype for the child node that is associated to $key in the value array. |
public addChild ( Symfony\Component\Config\Definition\NodeInterface $node ) | ||
$node | Symfony\Component\Config\Definition\NodeInterface | The child node to add |
protected finalizeValue ( mixed $value ) : mixed | ||
$value | mixed | |
Результат | mixed | The finalized value |
public getDefaultValue ( ) : array | ||
Результат | array | The default value |
public getKeyAttribute ( ) : string | ||
Результат | string | The name of the attribute |
public getPrototype ( ) : Symfony\Component\Config\Definition\PrototypeNodeInterface | ||
Результат | Symfony\Component\Config\Definition\PrototypeNodeInterface | The prototype |
public hasDefaultValue ( ) : boolean | ||
Результат | boolean |
protected normalizeValue ( mixed $value ) : mixed | ||
$value | mixed | The value to normalize |
Результат | mixed | The normalized value |
public setDefaultValue ( string $value ) | ||
$value | string |
public setKeyAttribute ( string $attribute, boolean $remove = true ) | ||
$attribute | string | The name of the attribute which value is to be used as a key |
$remove | boolean | Whether or not to remove the key |
public setMinNumberOfElements ( integer $number ) | ||
$number | integer |
public setPrototype ( Symfony\Component\Config\Definition\PrototypeNodeInterface $node ) | ||
$node | Symfony\Component\Config\Definition\PrototypeNodeInterface |