PHP Класс ProjectConfigurator, symfony-1.4

This class handles the occurance of registered datatype tags like FileSet
Автор: Andreas Aderhold ([email protected])
Показать файл Открыть проект Примеры использования класса

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

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