The Yaf_Route_Rewrite class

Introduction

Yaf_Route_Rewrite is a built-in route that maps a fixed path pattern to a module, controller and action. The pattern may contain named placeholders (:name, whose value is set as a request parameter) and a trailing * wildcard that captures the remaining segments as key/value pairs.

For usage, please see the example section of Yaf_Route_Rewrite::__construct.

Class synopsis

Yaf_Route_Rewrite
class Yaf_Route_Rewrite extends Yaf_Route_Interface implements Yaf_Route_Interface {
/* Properties */
protected $_route;
protected $_default;
protected $_verify;
/* Methods */
public __construct(string $match, array $route, array $verify = ?)
public string assemble(array $info, array $query = ?)
public bool route(Yaf_Request_Abstract $request)
/* Inherited methods */
abstract public string Yaf_Route_Interface::assemble(array $info, array $query = ?)
abstract public bool Yaf_Route_Interface::route(Yaf_Request_Abstract $request)
}

Properties

_route

_default

_verify

Table of Contents