RESTful Web application router class for the Joomla Platform.
- Depuis
- 3.0
- Obsolète:
- 4.0 Use the
joomla/router
package via Composer instead
◆ execute()
Find and execute the appropriate controller based on a given route.
- Paramètres
-
string | $route | The route string for which to find and execute a controller. |
- Renvoie
- void
- Depuis
- 3.0
- Exceptions
-
InvalidArgumentException | |
RuntimeException | |
Références $controller, $name, et $route.
◆ fetchControllerSuffix()
fetchControllerSuffix |
( |
| ) |
|
|
protected |
Get the controller class suffix string.
- Renvoie
- string
- Depuis
- 3.0
- Exceptions
-
◆ isMethodInPostRequest()
isMethodInPostRequest |
( |
| ) |
|
Get the property to allow or not method in POST request
- Renvoie
- boolean
- Depuis
- 3.0
◆ setHttpMethodSuffix()
setHttpMethodSuffix |
( |
|
$method, |
|
|
|
$suffix |
|
) |
| |
Set a controller class suffix for a given HTTP method.
- Paramètres
-
string | $method | The HTTP method for which to set the class suffix. |
string | $suffix | The class suffix to use when fetching the controller name for a given request. |
- Renvoie
- JApplicationWebRouter This object for method chaining.
- Depuis
- 3.0
Références $suffix.
◆ setMethodInPostRequest()
setMethodInPostRequest |
( |
|
$value | ) |
|
Set to allow or not method in POST request
- Paramètres
-
boolean | $value | A boolean to allow or not method in POST request |
- Renvoie
- void
- Depuis
- 3.0
Références $value.
◆ $methodInPostRequest
$methodInPostRequest = false |
|
protected |
◆ $suffixMap
Valeur initiale := array(
'GET' => 'Get',
'POST' => 'Create',
'PUT' => 'Update',
'PATCH' => 'Update',
'DELETE' => 'Delete',
'HEAD' => 'Head',
'OPTIONS' => 'Options',
)
La documentation de cette classe a été générée à partir du fichier suivant :