PHP Class PhpBrew\Build

Inheritance: implements Serializabl\Serializable
Exibir arquivo Open project: phpbrew/phpbrew Class Usage Examples

Public Properties

Property Type Description
$installPrefix the directory that contains bin/php, var/..., includes/
$name
$osName environment related information (should be moved to environment class).
$osRelease
$phpEnvironment
$settings PhpBrew\BuildSettings
$sourceDirectory The source directory
$state string Build state.
$version

Protected Properties

Property Type Description
$configDirectory the directory that contains php.ini file.

Public Methods

Method Description
__call ( $m, $a )
__construct ( string $version, string $name = null, string $installPrefix = null ) Construct a Build object,.
__set_state ( $data )
compareVersion ( $version )
export ( )
findByName ( string $name ) : Build Find a installed build by name, currently a $name is a php version, but in future we may have customized name for users.
getBinDirectory ( )
getBuildLogPath ( )
getConfigDirectory ( )
getCurrentConfigScanPath ( ) Returns {prefix}/var/db path.
getEtcDirectory ( )
getIdentifier ( ) Returns a build identifier.
getInstallPrefix ( )
getName ( )
getPath ( $subpath )
getSourceDirectory ( )
getSourceExtensionDirectory ( )
getState ( )
getStateFile ( ) Where we store the last finished state, currently for:.
getVarConfigDirectory ( )
getVarDirectory ( )
getVersion ( )
import ( $data )
isBuildable ( )
loadFile ( $file )
serialize ( ) XXX: Make sure Serializable interface works for php 5.3.
setBuildSettings ( BuildSettings $settings )
setConfigDirectory ( $directory )
setInstallPrefix ( $prefix )
setName ( $name )
setOSName ( $osName )
setOSRelease ( $osRelease )
setSourceDirectory ( $dir ) PHP Source directory, this method returns value only when source directory is set.
setState ( $state )
setVersion ( $version )
unserialize ( $serialized )
writeFile ( $file )

Method Details

__call() public method

public __call ( $m, $a )

__construct() public method

A build object contains the information of all build options, prefix, paths... etc
public __construct ( string $version, string $name = null, string $installPrefix = null )
$version string build version
$name string build name
$installPrefix string install prefix

__set_state() public method

public __set_state ( $data )

compareVersion() public method

public compareVersion ( $version )

export() public method

public export ( )

findByName() public static method

Find a installed build by name, currently a $name is a php version, but in future we may have customized name for users.
public static findByName ( string $name ) : Build
$name string
return Build

getBinDirectory() public method

public getBinDirectory ( )

getBuildLogPath() public method

public getBuildLogPath ( )

getConfigDirectory() public method

public getConfigDirectory ( )

getCurrentConfigScanPath() public method

Returns {prefix}/var/db path.

getEtcDirectory() public method

public getEtcDirectory ( )

getIdentifier() public method

Returns a build identifier.
public getIdentifier ( )

getInstallPrefix() public method

public getInstallPrefix ( )

getName() public method

public getName ( )

getPath() public method

public getPath ( $subpath )

getSourceDirectory() public method

public getSourceDirectory ( )

getSourceExtensionDirectory() public method

getState() public method

public getState ( )

getStateFile() public method

- FALSE or NULL - nothing done yet. - "download" - distribution file was downloaded. - "extract" - distribution file was extracted to the build directory. - "configure" - configure was done. - "make" - make was done. - "install" - installation was done. Not used yet.
public getStateFile ( )

getVarConfigDirectory() public method

getVarDirectory() public method

public getVarDirectory ( )

getVersion() public method

public getVersion ( )

import() public method

public import ( $data )

isBuildable() public method

public isBuildable ( )

loadFile() public method

public loadFile ( $file )

serialize() public method

XXX: Make sure Serializable interface works for php 5.3.
public serialize ( )

setBuildSettings() public method

public setBuildSettings ( BuildSettings $settings )
$settings PhpBrew\BuildSettings\BuildSettings

setConfigDirectory() public method

public setConfigDirectory ( $directory )

setInstallPrefix() public method

public setInstallPrefix ( $prefix )

setName() public method

public setName ( $name )

setOSName() public method

public setOSName ( $osName )

setOSRelease() public method

public setOSRelease ( $osRelease )

setSourceDirectory() public method

PHP Source directory, this method returns value only when source directory is set.
public setSourceDirectory ( $dir )

setState() public method

public setState ( $state )

setVersion() public method

public setVersion ( $version )

unserialize() public method

public unserialize ( $serialized )

writeFile() public method

public writeFile ( $file )

Property Details

$configDirectory protected_oe property

the directory that contains php.ini file.
protected $configDirectory

$installPrefix public_oe property

the directory that contains bin/php, var/..., includes/
public $installPrefix

$name public_oe property

public $name

$osName public_oe property

environment related information (should be moved to environment class).
public $osName

$osRelease public_oe property

public $osRelease

$phpEnvironment public_oe property

public $phpEnvironment

$settings public_oe property

public PhpBrew\BuildSettings $settings
return PhpBrew\BuildSettings

$sourceDirectory public_oe property

The source directory
public $sourceDirectory

$state public_oe property

Build state.
public string $state
return string

$version public_oe property

public $version