PHP Class PhpBrew\Build

Inheritance: implements Serializabl\Serializable
Afficher le fichier Open project: phpbrew/phpbrew Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
$configDirectory the directory that contains php.ini file.

Méthodes publiques

Méthode 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 méthode

public __call ( $m, $a )

__construct() public méthode

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 méthode

public __set_state ( $data )

compareVersion() public méthode

public compareVersion ( $version )

export() public méthode

public export ( )

findByName() public static méthode

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
Résultat Build

getBinDirectory() public méthode

public getBinDirectory ( )

getBuildLogPath() public méthode

public getBuildLogPath ( )

getConfigDirectory() public méthode

public getConfigDirectory ( )

getCurrentConfigScanPath() public méthode

Returns {prefix}/var/db path.

getEtcDirectory() public méthode

public getEtcDirectory ( )

getIdentifier() public méthode

Returns a build identifier.
public getIdentifier ( )

getInstallPrefix() public méthode

public getInstallPrefix ( )

getName() public méthode

public getName ( )

getPath() public méthode

public getPath ( $subpath )

getSourceDirectory() public méthode

public getSourceDirectory ( )

getSourceExtensionDirectory() public méthode

getState() public méthode

public getState ( )

getStateFile() public méthode

- 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 méthode

getVarDirectory() public méthode

public getVarDirectory ( )

getVersion() public méthode

public getVersion ( )

import() public méthode

public import ( $data )

isBuildable() public méthode

public isBuildable ( )

loadFile() public méthode

public loadFile ( $file )

serialize() public méthode

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

setBuildSettings() public méthode

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

setConfigDirectory() public méthode

public setConfigDirectory ( $directory )

setInstallPrefix() public méthode

public setInstallPrefix ( $prefix )

setName() public méthode

public setName ( $name )

setOSName() public méthode

public setOSName ( $osName )

setOSRelease() public méthode

public setOSRelease ( $osRelease )

setSourceDirectory() public méthode

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

setState() public méthode

public setState ( $state )

setVersion() public méthode

public setVersion ( $version )

unserialize() public méthode

public unserialize ( $serialized )

writeFile() public méthode

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
Résultat PhpBrew\BuildSettings

$sourceDirectory public_oe property

The source directory
public $sourceDirectory

$state public_oe property

Build state.
public string $state
Résultat string

$version public_oe property

public $version