eZPublishCommunityProject  2013.5
eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured:

Public Member Functions

 getView (Block $block)
 Returns a ContentView object corresponding to $block, or null if not applicable. More...
 
 match (ViewProviderMatcher $matcher, ValueObject $valueObject)
 Checks if $valueObject matches the $matcher's rules.
Parameters
\eZ\Publish\Core\MVC\Symfony\View\ViewProviderMatcher$matcher
\eZ\Publish\API\Repository\Values\ValueObject$valueObject
Exceptions
\InvalidArgumentExceptionIf $valueObject is not of expected sub-type.
Returns
bool
More...
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\Configured
 __construct (Repository $repository, array $matchConfig)
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\Block
 getView (PageBlock $block)
 Returns a ContentView object corresponding to $block, or null if not applicable. More...
 

Public Attributes

const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\View\\BlockViewProvider\\Configured\\Matcher'
 
- Public Attributes inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\ContentBasedConfigured
const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\View\\ContentViewProvider\\Configured\\Matcher'
 

Protected Member Functions

 getMatcher ($matcherIdentifier)
 Returns the matcher object. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\ContentBasedConfigured
 getMatcher ($matcherIdentifier)
 Returns the matcher object. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\Configured
 getMatcher ($matcherIdentifier)
 Returns the matcher object. More...
 

Additional Inherited Members

- Protected Attributes inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\Configured
 $matchConfig
 
 $matchers
 
 $repository
 

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured::getMatcher (   $matcherIdentifier)
protected

Returns the matcher object.

Parameters
string$matcherIdentifierThe matcher class. If it begins with a '\' it means it's a FQ class name, otherwise it is relative to eZ namespace.
Exceptions
\InvalidArgumentException
Returns
eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured::getView ( Block  $block)

Returns a ContentView object corresponding to $block, or null if not applicable.

Parameters
\eZ\Publish\Core\FieldType\Page\Parts\Block$block
Returns
|null
eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured::match ( ViewProviderMatcher  $matcher,
ValueObject  $valueObject 
)

Checks if $valueObject matches the $matcher's rules.

Parameters
\eZ\Publish\Core\MVC\Symfony\View\ViewProviderMatcher$matcher
\eZ\Publish\API\Repository\Values\ValueObject$valueObject
Exceptions
\InvalidArgumentExceptionIf $valueObject is not of expected sub-type.
Returns
bool

Implements eZ\Publish\Core\MVC\Symfony\View\Provider\ViewProviderInterface.

Member Data Documentation

const eZ\Publish\Core\MVC\Symfony\View\Provider\Block\Configured::MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\View\\BlockViewProvider\\Configured\\Matcher'

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