PHP Класс Neos\Flow\Security\RequestPattern\Uri

Наследование: implements Neos\Flow\Security\RequestPatternInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$options array

Открытые методы

Метод Описание
__construct ( array $options ) Expects options in the form array('uriPattern' => '')
matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Matches a \Neos\Flow\Mvc\RequestInterface against its set URL pattern rules
setPattern ( string $uriPattern ) : void Sets an URI pattern (preg_match() syntax)

Описание методов

__construct() публичный Метод

Expects options in the form array('uriPattern' => '')
public __construct ( array $options )
$options array

matchRequest() публичный Метод

Matches a \Neos\Flow\Mvc\RequestInterface against its set URL pattern rules
public matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean
$request Neos\Flow\Mvc\RequestInterface The request that should be matched
Результат boolean TRUE if the pattern matched, FALSE otherwise

setPattern() публичный Метод

Note: the pattern is a full-on regular expression pattern. The only thing that is touched by the code: forward slashes are escaped before the pattern is used.
Устаревший: since 3.3 this is not used - use options instead (@see __construct())
public setPattern ( string $uriPattern ) : void
$uriPattern string The URI pattern
Результат void

Описание свойств

$options защищенное свойство

protected array $options
Результат array