PHP Класс eZ\Publish\Core\REST\Common\RequestParser\Pattern
Handles 2 types of patterns to be used in an URL:
- {foo} matches anything but a slash and is used to match the typical URL
variable (e.g. an ID)
- {&foo} matches the slash, too, and is used to match only those URL
variables, which may have a slash
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Защищенные методы
Метод |
Описание |
|
compile ( string $pattern ) : string |
Compiles a given pattern to a PCRE regular expression. |
|
Описание методов
__construct()
публичный Метод
Construct from optional initial map.
addPattern()
публичный Метод
Adds a pattern for a type.
compile()
защищенный Метод
Compiles a given pattern to a PCRE regular expression.
generate()
публичный Метод
Generate a URL of the given type from the specified values.
Parse URL and return the IDs contained in the URL.
parseHref()
публичный Метод
Описание свойств
$compileCache защищенное свойство
Cache for compiled expressions.
protected array $compileCache |
Результат |
array |
|
Map of URL types to their URL patterns.
protected array $map |
Результат |
array |
|