PHP 클래스 ProjectConfigurator, symfony-1.4

This class handles the occurance of registered datatype tags like FileSet
저자: Andreas Aderhold ([email protected])
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$buildFile
$buildFileParent
$locator
$project

공개 메소드들

메소드 설명
__construct ( Project $project, PhingFile $buildFile ) Constructs a new ProjectConfigurator object This constructor is private. Use a static call to configureProject to configure a project.
addText ( $project, $target, $text = null ) Configures the #CDATA of an element.
configure ( $target, $attrs, Project $project ) Configures an element and resolves eventually given properties.
configureId ( $target, $attr ) Scan Attributes for the id attribute and maybe add a reference to project.
configureProject ( Project $project, PhingFile $buildFile ) Static call to ProjectConfigurator. Use this to configure a project. Do not use the new operator.
replaceProperties ( Project $project, $value, $keys ) : string Replace ${} style constructions in the given value with the string value of the corresponding data types. This method is static.
storeChild ( $project, $parent, $child, $tag ) Stores a configured child element into its parent object

보호된 메소드들

메소드 설명
parse ( ) Creates the ExpatParser, sets root handler and kick off parsing process.

비공개 메소드들

메소드 설명
replacePropertyCallback ( $matches ) Private [static] function for use by preg_replace_callback to replace a single param.

메소드 상세

__construct() 공개 메소드

Constructs a new ProjectConfigurator object This constructor is private. Use a static call to configureProject to configure a project.
public __construct ( Project $project, PhingFile $buildFile )
$project Project
$buildFile PhingFile

addText() 공개 정적인 메소드

Configures the #CDATA of an element.
public static addText ( $project, $target, $text = null )

configure() 공개 정적인 메소드

Configures an element and resolves eventually given properties.
public static configure ( $target, $attrs, Project $project )
$project Project

configureId() 공개 메소드

Scan Attributes for the id attribute and maybe add a reference to project.
public configureId ( $target, $attr )

configureProject() 공개 정적인 메소드

Static call to ProjectConfigurator. Use this to configure a project. Do not use the new operator.
public static configureProject ( Project $project, PhingFile $buildFile )
$project Project
$buildFile PhingFile

parse() 보호된 메소드

Creates the ExpatParser, sets root handler and kick off parsing process.
protected parse ( )

replaceProperties() 공개 정적인 메소드

Replace ${} style constructions in the given value with the string value of the corresponding data types. This method is static.
public static replaceProperties ( Project $project, $value, $keys ) : string
$project Project
리턴 string the replaced string or null if the string itself was null

storeChild() 공개 정적인 메소드

Stores a configured child element into its parent object
public static storeChild ( $project, $parent, $child, $tag )

프로퍼티 상세

$buildFile 공개적으로 프로퍼티

public $buildFile

$buildFileParent 공개적으로 프로퍼티

public $buildFileParent

$locator 공개적으로 프로퍼티

public $locator

$project 공개적으로 프로퍼티

public $project