PHP 클래스 PhpBrew\Build

상속: implements Serializabl\Serializable
파일 보기 프로젝트 열기: phpbrew/phpbrew 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$configDirectory the directory that contains php.ini file.

공개 메소드들

메소드 설명
__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 )

메소드 상세

__call() 공개 메소드

public __call ( $m, $a )

__construct() 공개 메소드

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 __set_state ( $data )

compareVersion() 공개 메소드

public compareVersion ( $version )

export() 공개 메소드

public export ( )

findByName() 공개 정적인 메소드

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
리턴 Build

getBinDirectory() 공개 메소드

public getBinDirectory ( )

getBuildLogPath() 공개 메소드

public getBuildLogPath ( )

getConfigDirectory() 공개 메소드

public getConfigDirectory ( )

getCurrentConfigScanPath() 공개 메소드

Returns {prefix}/var/db path.

getEtcDirectory() 공개 메소드

public getEtcDirectory ( )

getIdentifier() 공개 메소드

Returns a build identifier.
public getIdentifier ( )

getInstallPrefix() 공개 메소드

public getInstallPrefix ( )

getName() 공개 메소드

public getName ( )

getPath() 공개 메소드

public getPath ( $subpath )

getSourceDirectory() 공개 메소드

public getSourceDirectory ( )

getSourceExtensionDirectory() 공개 메소드

getState() 공개 메소드

public getState ( )

getStateFile() 공개 메소드

- 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() 공개 메소드

getVarDirectory() 공개 메소드

public getVarDirectory ( )

getVersion() 공개 메소드

public getVersion ( )

import() 공개 메소드

public import ( $data )

isBuildable() 공개 메소드

public isBuildable ( )

loadFile() 공개 메소드

public loadFile ( $file )

serialize() 공개 메소드

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

setBuildSettings() 공개 메소드

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

setConfigDirectory() 공개 메소드

public setConfigDirectory ( $directory )

setInstallPrefix() 공개 메소드

public setInstallPrefix ( $prefix )

setName() 공개 메소드

public setName ( $name )

setOSName() 공개 메소드

public setOSName ( $osName )

setOSRelease() 공개 메소드

public setOSRelease ( $osRelease )

setSourceDirectory() 공개 메소드

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

setState() 공개 메소드

public setState ( $state )

setVersion() 공개 메소드

public setVersion ( $version )

unserialize() 공개 메소드

public unserialize ( $serialized )

writeFile() 공개 메소드

public writeFile ( $file )

프로퍼티 상세

$configDirectory 보호되어 있는 프로퍼티

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

$installPrefix 공개적으로 프로퍼티

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

$name 공개적으로 프로퍼티

public $name

$osName 공개적으로 프로퍼티

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

$osRelease 공개적으로 프로퍼티

public $osRelease

$phpEnvironment 공개적으로 프로퍼티

public $phpEnvironment

$settings 공개적으로 프로퍼티

public PhpBrew\BuildSettings $settings
리턴 PhpBrew\BuildSettings

$sourceDirectory 공개적으로 프로퍼티

The source directory
public $sourceDirectory

$state 공개적으로 프로퍼티

Build state.
public string $state
리턴 string

$version 공개적으로 프로퍼티

public $version