A feature holding a value.
While most features are simple boolean features (see \FeaturePhp\Model\Feature), value features have a string value that may further customize product generation.
| package | Default |
|---|---|
| inherited_from | \FeaturePhp\Model\Feature |
__construct(\SimpleXMLElement $node, \SimpleXMLElement $parent= null, array<mixed,\SimpleXMLElement> $children= null)
For the attributes "mandatory", "alternative" and "or" see \FeaturePhp\Model\ConstraintSolver.
| inherited_from | \FeaturePhp\Model\Feature::__construct() |
|---|
\SimpleXMLElement
\SimpleXMLElement
array<mixed,\SimpleXMLElement>
__construct(\SimpleXMLElement $node, \SimpleXMLElement $parent= null, array<mixed,\SimpleXMLElement> $children= null)
For the attributes "mandatory", "alternative" and "or" see \FeaturePhp\Model\ConstraintSolver.
\SimpleXMLElement
\SimpleXMLElement
array<mixed,\SimpleXMLElement>
findByName(array<mixed,\FeaturePhp\Model\Feature> $features, string $featureName, boolean $permissive = false) : \FeaturePhp\Model\Feature
Permissive search ignores case and substitutes hyphens.
array<mixed,\FeaturePhp\Model\Feature>
string
boolean
\FeaturePhp\Model\FeaturefromNode(\SimpleXMLElement $node, \SimpleXMLElement $parent) : \FeaturePhp\Model\Feature
\SimpleXMLElement
\SimpleXMLElement
\FeaturePhp\Model\FeaturegetAlternative() : boolean
booleangetChildren() : array<mixed,\SimpleXMLElement>
array<mixed,\SimpleXMLElement>getDefaultValue() : string
| inherited_from | \FeaturePhp\Model\Feature::getDefaultValue() |
|---|
stringgetDefaultValue() : string
stringgetDescription() : string
stringgetIdentifier() : string
stringgetMandatory() : boolean
booleangetName() : string
stringgetOr() : boolean
booleangetParent() : \SimpleXMLElement
\SimpleXMLElementgetPermissiveName() : string
stringhas(array<mixed,\FeaturePhp\Model\Features> $features, \FeaturePhp\Model\Feature $feature) : boolean
array<mixed,\FeaturePhp\Model\Features>
\FeaturePhp\Model\Feature
boolean_getPermissiveName(string $name) : string
string
string$alternative : boolean
$children : array<mixed,\SimpleXMLElement>
$defaultValue : string
$description : string
$mandatory : boolean
$name : string
$or : boolean
$parent : \SimpleXMLElement