PHP Class PhpBrew\BuildSettings\BuildSettings

Afficher le fichier Open project: phpbrew/phpbrew Class Usage Examples

Méthodes publiques

Свойство Type Description
$disabledVariants
$extraOptions
$variants TODO: should be renamed to enabledVariants.

Méthodes publiques

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 )

Method Details

__construct() public méthode

public __construct ( array $settings = [] )
$settings array

appendExtraOptions() public méthode

public appendExtraOptions ( $option )

disableVariant() public méthode

Disable variant.
public disableVariant ( string $name )
$name string The variant name.

disableVariants() public méthode

public disableVariants ( array $settings )
$settings array

enableVariant() public méthode

public enableVariant ( $name, $value = null )

enableVariants() public méthode

public enableVariants ( array $settings )
$settings array

getDisabledVariants() public méthode

Get all disabled variants.
public getDisabledVariants ( )

getExtraOptions() public méthode

public getExtraOptions ( )

getVariant() public méthode

Returns variant user value.
public getVariant ( string $n ) : string
$n string variant name
Résultat string variant value

getVariants() public méthode

Get enabled variants.
public getVariants ( )

grepExtraOptionsByPattern() public méthode

public grepExtraOptionsByPattern ( $pattern )

hasVariant() public méthode

Check if we've enabled the variant.
public hasVariant ( string $name ) : boolean
$name string
Résultat boolean

isDisabledVariant() public méthode

public isDisabledVariant ( $name )

isEnabledVariant() public méthode

public isEnabledVariant ( $name )

loadVariantInfo() public méthode

public loadVariantInfo ( array $variantInfo, $reset = false )
$variantInfo array

loadVariantInfoFile() public méthode

Load and return the variant info from file.
public loadVariantInfoFile ( $variantFile )

removeDisabledVariant() public méthode

public removeDisabledVariant ( $name )

removeVariant() public méthode

Remove enabled variant.
public removeVariant ( $variantName )

resolveVariants() public méthode

Remove the enabled the variants since we've disabled them.
public resolveVariants ( )

setExtraOptions() public méthode

public setExtraOptions ( array $options )
$options array

setVariants() public méthode

Set enabled variants.
public setVariants ( array $variants )
$variants array

toArray() public méthode

public toArray ( )

writeVariantInfoFile() public méthode

public writeVariantInfoFile ( $variantInfoFile )

Property Details

$disabledVariants public_oe property

public $disabledVariants

$extraOptions public_oe property

public $extraOptions

$variants public_oe property

TODO: should be renamed to enabledVariants.
public $variants