Modular Framework  1.0
A light and thin PHP Framework
Loading...
Searching...
No Matches
RequestFallback Class Reference

Fallback values if the router hasn't found any matching routes. More...

Static Public Member Functions

static NOT_FOUND ()
 
static FORBIDDEN ()
 
static fromString (string $str)
 

Public Attributes

string $value
 

Detailed Description

Fallback values if the router hasn't found any matching routes.

Member Function Documentation

◆ FORBIDDEN()

static FORBIDDEN ( )
static

This fallback is triggered if the matching route is not permitted to the user.

Note
This feature is not implemented yet.

◆ fromString()

static fromString ( string  $str)
static

This function will create a RequestFallback object from a string.

Parameters
string$strgiven string.
Returns
RequestFallback|null the matching RequestFallback object.

◆ NOT_FOUND()

static NOT_FOUND ( )
static

This fallback is triggered if no matching route was found.

Member Data Documentation

◆ $value

string $value