mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Expand doc blocks for CakeRequest::addDetector.
This commit is contained in:
parent
e780919eb4
commit
ad7563736f
1 changed files with 7 additions and 1 deletions
|
@ -581,7 +581,13 @@ class CakeRequest implements ArrayAccess {
|
||||||
*
|
*
|
||||||
* Allows for custom detectors on the request parameters.
|
* Allows for custom detectors on the request parameters.
|
||||||
*
|
*
|
||||||
* e.g `addDetector('post', array('param' => 'requested', 'value' => 1)`
|
* e.g `addDetector('requested', array('param' => 'requested', 'value' => 1)`
|
||||||
|
*
|
||||||
|
* You can also make parameter detectors that accept multiple values
|
||||||
|
* using the `options` key. This is useful when you want to check
|
||||||
|
* if a request parameter is in a list of options.
|
||||||
|
*
|
||||||
|
* `addDetector('extension', array('param' => 'ext', 'options' => array('pdf', 'csv'))`
|
||||||
*
|
*
|
||||||
* @param string $name The name of the detector.
|
* @param string $name The name of the detector.
|
||||||
* @param array $options The options for the detector definition. See above.
|
* @param array $options The options for the detector definition. See above.
|
||||||
|
|
Loading…
Reference in a new issue