PHP 클래스 eZ\Publish\Core\MVC\Symfony\Matcher\AbstractMatcherFactory

Implementors can define MATCHER_RELATIVE_NAMESPACE constant. If so, getMatcher() will return instances of objects relative to this namespace if $matcherIdentifier argument doesn't begin with a '\' (FQ class name).
상속: implements eZ\Publish\Core\MVC\Symfony\Matcher\MatcherFactoryInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alreadyMatched SplObjectStorage[] Key is the view type.
$matchConfig array
$matcherRelativeNamespace string Namespace built-in matchers are relative to.
$matchers eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface[]
$repository eZ\Publish\API\Repository\Repository

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Repository $repository, array $matchConfig = [] )
match ( eZ\Publish\Core\MVC\Symfony\View\View $view ) : array | null Checks if $valueObject has a usable configuration for $viewType.

보호된 메소드들

메소드 설명
doMatch ( eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher, eZ\Publish\Core\MVC\Symfony\View\View $valueObject ) : boolean Checks if $valueObject matches $matcher rules.
getMatcher ( string $matcherIdentifier ) : eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface | eZ\Publish\Core\MVC\Symfony\Matcher\ViewMatcherInterface Returns the matcher object.

메소드 상세

__construct() 공개 메소드

public __construct ( eZ\Publish\API\Repository\Repository $repository, array $matchConfig = [] )
$repository eZ\Publish\API\Repository\Repository
$matchConfig array

doMatch() 추상적인 보호된 메소드

Checks if $valueObject matches $matcher rules.
abstract protected doMatch ( eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher, eZ\Publish\Core\MVC\Symfony\View\View $valueObject ) : boolean
$matcher eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface
$valueObject eZ\Publish\Core\MVC\Symfony\View\View
리턴 boolean

getMatcher() 보호된 메소드

Returns the matcher object.
protected getMatcher ( string $matcherIdentifier ) : eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface | eZ\Publish\Core\MVC\Symfony\Matcher\ViewMatcherInterface
$matcherIdentifier string The matcher class. If it begins with a '\' it means it's a FQ class name, otherwise it is relative to static::MATCHER_RELATIVE_NAMESPACE namespace (if available).
리턴 eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface | eZ\Publish\Core\MVC\Symfony\Matcher\ViewMatcherInterface

match() 공개 메소드

If so, the configuration hash will be returned. $valueObject can be for example a Location or a Content object.
public match ( eZ\Publish\Core\MVC\Symfony\View\View $view ) : array | null
$view eZ\Publish\Core\MVC\Symfony\View\View
리턴 array | null The matched configuration as a hash, containing template or controller to use, or null if not matched.

프로퍼티 상세

$alreadyMatched 보호되어 있는 프로퍼티

Key is the view type.
protected SplObjectStorage[] $alreadyMatched
리턴 SplObjectStorage[]

$matchConfig 보호되어 있는 프로퍼티

protected array $matchConfig
리턴 array

$matcherRelativeNamespace 보호되어 있는 프로퍼티

Namespace built-in matchers are relative to.
protected string $matcherRelativeNamespace
리턴 string

$matchers 보호되어 있는 프로퍼티

protected MatcherInterface[],eZ\Publish\Core\MVC\Symfony\Matcher $matchers
리턴 eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface[]

$repository 보호되어 있는 프로퍼티

protected Repository,eZ\Publish\API\Repository $repository
리턴 eZ\Publish\API\Repository\Repository