final class Supervar implements Route_Interface (View source)

Properties

protected string $_var_name

Methods

__construct(string $supervar_name)

\Yaf\Route\Supervar is similar to \Yaf\Route_Static, the difference is that \Yaf\Route\Supervar will look for path info in query string, and the parameter supervar_name is the key.

bool
route(Request_Abstract $request)

No description

bool
assemble(array $info, array $query = null)

\Yaf\Route\Supervar::assemble() - Assemble a url

Details

__construct(string $supervar_name)

\Yaf\Route\Supervar is similar to \Yaf\Route_Static, the difference is that \Yaf\Route\Supervar will look for path info in query string, and the parameter supervar_name is the key.

Parameters

string $supervar_name

The name of key.

Exceptions

TypeError

bool route(Request_Abstract $request)

No description

Parameters

Request_Abstract $request

Return Value

bool

bool assemble(array $info, array $query = null)

\Yaf\Route\Supervar::assemble() - Assemble a url

Parameters

array $info
array $query

Return Value

bool