PHP 클래스 Symfony\Component\DependencyInjection\Loader\XmlFileLoader

저자: Fabien Potencier ([email protected])
상속: extends Symfony\Component\DependencyInjection\Loader\FileLoader
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

공개 메소드들

메소드 설명
convertDomElementToArray ( DOMElement $element ) : array Converts a \DomElement object to a PHP array.
load ( $resource, $type = null )
supports ( $resource, $type = null )
validateSchema ( DOMDocument $dom ) : boolean Validates a documents XML schema.

비공개 메소드들

메소드 설명
getArgumentsAsPhp ( DOMElement $node, string $name, boolean $lowercase = true ) : mixed Returns arguments as valid php types.
getChildren ( DOMNode $node, mixed $name ) : array Get child elements by name.
loadFromExtensions ( DOMDocument $xml ) Loads from an extension.
parseDefinition ( DOMElement $service, string $file ) : Definition | null Parses an individual Definition.
parseDefinitions ( DOMDocument $xml, string $file ) Parses multiple definitions.
parseFileToDOM ( string $file ) : DOMDocument Parses a XML file to a \DOMDocument.
parseImports ( DOMDocument $xml, string $file ) Parses imports.
parseParameters ( DOMDocument $xml ) Parses parameters.
processAnonymousServices ( DOMDocument $xml, string $file ) Processes anonymous services.
validateAlias ( DOMElement $alias, string $file ) Validates an alias.
validateExtensions ( DOMDocument $dom, string $file ) Validates an extension.

메소드 상세

convertDomElementToArray() 공개 정적인 메소드

The following rules applies during the conversion: * Each tag is converted to a key value or an array if there is more than one "value" * The content of a tag is set under a "value" key (bar) if the tag also has some nested tags * The attributes are converted to keys () * The nested-tags are converted to keys (bar)
public static convertDomElementToArray ( DOMElement $element ) : array
$element DOMElement A \DomElement instance
리턴 array A PHP array

load() 공개 메소드

public load ( $resource, $type = null )

supports() 공개 메소드

public supports ( $resource, $type = null )

validateSchema() 공개 메소드

Validates a documents XML schema.
public validateSchema ( DOMDocument $dom ) : boolean
$dom DOMDocument
리턴 boolean