final class Yaf_Route_Supervar implements Yaf_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(Yaf_Request_Abstract $request)

No description

bool
assemble(array $info, array|null $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

Yaf_Exception_TypeError

bool route(Yaf_Request_Abstract $request)

No description

Parameters

Yaf_Request_Abstract $request

Return Value

bool

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

Yaf_Route_Supervar::assemble() - Assemble a url

Parameters

array $info
array|null $query

Return Value

bool