PHP Class PhpBrew\BuildSettings\BuildSettings

Show file Open project: phpbrew/phpbrew Class Usage Examples

Public Properties

Property Type Description
$disabledVariants
$extraOptions
$variants TODO: should be renamed to enabledVariants.

Public Methods

Method 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 method

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

appendExtraOptions() public method

public appendExtraOptions ( $option )

disableVariant() public method

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

disableVariants() public method

public disableVariants ( array $settings )
$settings array

enableVariant() public method

public enableVariant ( $name, $value = null )

enableVariants() public method

public enableVariants ( array $settings )
$settings array

getDisabledVariants() public method

Get all disabled variants.
public getDisabledVariants ( )

getExtraOptions() public method

public getExtraOptions ( )

getVariant() public method

Returns variant user value.
public getVariant ( string $n ) : string
$n string variant name
return string variant value

getVariants() public method

Get enabled variants.
public getVariants ( )

grepExtraOptionsByPattern() public method

public grepExtraOptionsByPattern ( $pattern )

hasVariant() public method

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

isDisabledVariant() public method

public isDisabledVariant ( $name )

isEnabledVariant() public method

public isEnabledVariant ( $name )

loadVariantInfo() public method

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

loadVariantInfoFile() public method

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

removeDisabledVariant() public method

public removeDisabledVariant ( $name )

removeVariant() public method

Remove enabled variant.
public removeVariant ( $variantName )

resolveVariants() public method

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

setExtraOptions() public method

public setExtraOptions ( array $options )
$options array

setVariants() public method

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

toArray() public method

public toArray ( )

writeVariantInfoFile() public method

public writeVariantInfoFile ( $variantInfoFile )

Property Details

$disabledVariants public property

public $disabledVariants

$extraOptions public property

public $extraOptions

$variants public property

TODO: should be renamed to enabledVariants.
public $variants