PHP Класс PhpBrew\Build

Наследование: implements Serializabl\Serializable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$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