eZPublishCommunityProject  2013.4
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver:

Public Member Functions

 addResolver (ConfigResolverInterface $resolver, $priority=0)
 Registers $mapper as a valid mapper to be used in the configuration mapping chain. More...
 
 getAllResolvers ()
 
 getDefaultNamespace ()
 Not supported. More...
 
 getParameter ($paramName, $namespace=null, $scope=null)
 Returns value for $paramName, in $namespace. More...
 
 hasParameter ($paramName, $namespace=null, $scope=null)
 Checks if $paramName exists in $namespace. More...
 
 setDefaultNamespace ($defaultNamespace)
 Changes the default namespace to look parameter into. More...
 

Protected Member Functions

 sortResolvers ()
 Sort the registered mappers by priority. More...
 

Protected Attributes

 $resolvers = array()
 
 $sortedResolvers
 

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::addResolver ( ConfigResolverInterface  $resolver,
  $priority = 0 
)

Registers $mapper as a valid mapper to be used in the configuration mapping chain.

When this mapper will be called in the chain depends on $priority. The highest $priority is, the earliest the router will be called.

Parameters
\eZ\Publish\Core\MVC\ConfigResolverInterface$resolver
int$priority
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::getDefaultNamespace ( )

Not supported.

Exceptions
\LogicException

Implements eZ\Publish\Core\MVC\ConfigResolverInterface.

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::getParameter (   $paramName,
  $namespace = null,
  $scope = null 
)

Returns value for $paramName, in $namespace.

Parameters
string$paramNameThe parameter name, without $prefix and the current scope (i.e. siteaccess name).
string$namespaceNamespace for the parameter name. If null, the default namespace should be used.
string$scopeThe scope you need $paramName value for.
Exceptions
\eZ\Publish\Core\MVC\Exception\ParameterNotFoundException
Returns
mixed

Implements eZ\Publish\Core\MVC\ConfigResolverInterface.

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::hasParameter (   $paramName,
  $namespace = null,
  $scope = null 
)

Checks if $paramName exists in $namespace.

Parameters
string$paramName
string$namespaceIf null, the default namespace should be used.
string$scopeThe scope you need $paramName value for.
Returns
boolean

Implements eZ\Publish\Core\MVC\ConfigResolverInterface.

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::setDefaultNamespace (   $defaultNamespace)

Changes the default namespace to look parameter into.

Parameters
string$defaultNamespace

Implements eZ\Publish\Core\MVC\ConfigResolverInterface.

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::sortResolvers ( )
protected

Sort the registered mappers by priority.

The highest priority number is the highest priority (reverse sorting)

Returns
[]

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver\getAllResolvers().

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::$resolvers = array()
protected
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver::$sortedResolvers
protected

The documentation for this class was generated from the following file: