Méthode |
Description |
|
__construct ( array $settings = [] ) |
|
|
appendExtraOptions ( $option ) |
|
|
disableVariant ( string $name ) |
Disable variant. |
|
disableVariants ( array $settings ) |
|
|
enableVariant ( $name, $value = null ) |
|
|
enableVariants ( array $settings ) |
|
|
getDisabledVariants ( ) |
Get all disabled variants. |
|
getExtraOptions ( ) |
|
|
getVariant ( string $n ) : string |
Returns variant user value. |
|
getVariants ( ) |
Get enabled variants. |
|
grepExtraOptionsByPattern ( $pattern ) |
|
|
hasVariant ( string $name ) : boolean |
Check if we've enabled the variant. |
|
isDisabledVariant ( $name ) |
|
|
isEnabledVariant ( $name ) |
|
|
loadVariantInfo ( array $variantInfo, $reset = false ) |
|
|
loadVariantInfoFile ( $variantFile ) |
Load and return the variant info from file. |
|
removeDisabledVariant ( $name ) |
|
|
removeVariant ( $variantName ) |
Remove enabled variant. |
|
resolveVariants ( ) |
Remove the enabled the variants since we've disabled
them. |
|
setExtraOptions ( array $options ) |
|
|
setVariants ( array $variants ) |
Set enabled variants. |
|
toArray ( ) |
|
|
writeVariantInfoFile ( $variantInfoFile ) |
|
|