PHP Class Sulu\Component\Content\Metadata\Loader\XmlLegacyLoader

Inheritance: implements Symfony\Component\Config\Loader\LoaderInterface
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\HttpCache\CacheLifetimeResolverInterface $cacheLifetimeResolver )
getResolver ( )
load ( $resource, $type = 'page' )
setResolver ( Symfony\Component\Config\Loader\LoaderResolverInterface $resolver )
supports ( $resource, $type = null )

Private Methods

Method Description
getValueFromXPath ( $path, DOMXPath $xpath, DomNode $context = null, $default = null ) returns value of path.
loadBlock ( $templateKey, DOMXPath $xpath, DOMNode $node, &$tags ) load single block.
loadCacheLifetime ( $path, DOMXPath $xpath ) : array Load cache lifetime metadata.
loadMeta ( $path, DOMXPath $xpath, DOMNode $context = null )
loadParam ( DOMXPath $xpath, DOMNode $node ) load single param.
loadParams ( $path, DOMXPath $xpath, DOMNode $context = null ) load params from given node.
loadProperties ( $templateKey, $path, &$tags, DOMXPath $xpath, DOMNode $context = null ) load properties from given context.
loadProperty ( $templateKey, DOMXPath $xpath, DOMNode $node, &$tags ) load single property.
loadSection ( $templateKey, DOMXPath $xpath, DOMNode $node, &$tags ) load single block.
loadStructureTags ( $path, $xpath ) : array Loads the tags for the structure.
loadTag ( DOMXPath $xpath, DOMNode $node ) load single tag.
loadTags ( $path, &$tags, DOMXPath $xpath, DOMNode $context = null ) load tags from given tag and validates them.
loadTemplateAttributes ( $resource, DOMXPath $xpath, $type ) load basic template attributes.
loadType ( $templateKey, DOMXPath $xpath, DOMNode $node, &$tags ) load single param.
loadTypes ( $templateKey, $path, &$tags, DOMXPath $xpath, DOMNode $context = null ) load types from given node.
loadValues ( DOMXPath $xpath, DOMNode $node, $keys, $prefix = '@' ) load values defined by key from given node.
validateTag ( $tag, &$tags ) validates a single tag.

Method Details

__construct() public method

public __construct ( Sulu\Component\HttpCache\CacheLifetimeResolverInterface $cacheLifetimeResolver )
$cacheLifetimeResolver Sulu\Component\HttpCache\CacheLifetimeResolverInterface

getResolver() public method

public getResolver ( )

load() public method

public load ( $resource, $type = 'page' )

setResolver() public method

public setResolver ( Symfony\Component\Config\Loader\LoaderResolverInterface $resolver )
$resolver Symfony\Component\Config\Loader\LoaderResolverInterface

supports() public method

public supports ( $resource, $type = null )