PHP Class Jarves\Configuration\Route

Inheritance: extends Model
Afficher le fichier Open project: jarves/jarves Class Usage Examples

Protected Properties

Свойство Type Description
$attributes
$controller string Overwrites the controller for this route. Per default the controller of the plugin is used.
$defaults RouteDefault[]
$elementToArray
$id string
$methods string[] Per default all methods are allowed. Use 'GET', 'POST', or 'GET|POST' to limit it.
$pattern string
$requirements RouteRequirement[]

Méthodes publiques

Méthode Description
addDefault ( RouteDefault $default = null )
addRequirement ( RouteRequirement $requirement = null )
getArrayDefaults ( ) : array
getArrayRequirements ( ) : array
getController ( ) : string
getDefault ( string $key ) : RouteDefault
getDefaultValue ( string $key ) : string
getDefaults ( ) : RouteDefault[]
getId ( ) : string
getMethods ( ) : string[]
getPattern ( ) : string
getRequirements ( ) : RouteRequirement[]
setController ( string $controller )
setDefaults ( array $defaults = null )
setId ( string $id )
setMethods ( string[] $methods )
setPattern ( string $pattern )
setRequirements ( array $requirements = null )

Method Details

addDefault() public méthode

public addDefault ( RouteDefault $default = null )
$default RouteDefault

addRequirement() public méthode

public addRequirement ( RouteRequirement $requirement = null )
$requirement RouteRequirement

getArrayDefaults() public méthode

public getArrayDefaults ( ) : array
Résultat array

getArrayRequirements() public méthode

public getArrayRequirements ( ) : array
Résultat array

getController() public méthode

public getController ( ) : string
Résultat string

getDefault() public méthode

public getDefault ( string $key ) : RouteDefault
$key string
Résultat RouteDefault

getDefaultValue() public méthode

public getDefaultValue ( string $key ) : string
$key string
Résultat string

getDefaults() public méthode

public getDefaults ( ) : RouteDefault[]
Résultat RouteDefault[]

getId() public méthode

public getId ( ) : string
Résultat string

getMethods() public méthode

public getMethods ( ) : string[]
Résultat string[]

getPattern() public méthode

public getPattern ( ) : string
Résultat string

getRequirements() public méthode

public getRequirements ( ) : RouteRequirement[]
Résultat RouteRequirement[]

setController() public méthode

public setController ( string $controller )
$controller string

setDefaults() public méthode

public setDefaults ( array $defaults = null )
$defaults array

setId() public méthode

public setId ( string $id )
$id string

setMethods() public méthode

public setMethods ( string[] $methods )
$methods string[]

setPattern() public méthode

public setPattern ( string $pattern )
$pattern string

setRequirements() public méthode

public setRequirements ( array $requirements = null )
$requirements array

Property Details

$attributes protected_oe property

protected $attributes

$controller protected_oe property

Overwrites the controller for this route. Per default the controller of the plugin is used.
protected string $controller
Résultat string

$defaults protected_oe property

protected RouteDefault[],Jarves\Configuration $defaults
Résultat RouteDefault[]

$elementToArray protected_oe property

protected $elementToArray

$id protected_oe property

protected string $id
Résultat string

$methods protected_oe property

Per default all methods are allowed. Use 'GET', 'POST', or 'GET|POST' to limit it.
protected string[] $methods
Résultat string[]

$pattern protected_oe property

protected string $pattern
Résultat string

$requirements protected_oe property

protected RouteRequirement[],Jarves\Configuration $requirements
Résultat RouteRequirement[]