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\Feature
fromNode(\SimpleXMLElement $node, \SimpleXMLElement $parent) : \FeaturePhp\Model\Feature
\SimpleXMLElement
\SimpleXMLElement
\FeaturePhp\Model\Feature
getAlternative() : boolean
boolean
getChildren() : array<mixed,\SimpleXMLElement>
array<mixed,\SimpleXMLElement>
getDefaultValue() : string
inherited_from | \FeaturePhp\Model\Feature::getDefaultValue() |
---|
string
getDefaultValue() : string
string
getDescription() : string
string
getIdentifier() : string
string
getMandatory() : boolean
boolean
getName() : string
string
getOr() : boolean
boolean
getParent() : \SimpleXMLElement
\SimpleXMLElement
getPermissiveName() : string
string
has(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