param-manager.php
Table of Contents
Functions
- buddyc_param_manager() : mixed
- Creates a new ParamManager instance.
- buddyc_get_param() : mixed
- Retrieves the value of a url parameter.
- buddyc_get_all_params() : array<string|int, mixed>
- Retrieves all url parameters.
- buddyc_add_params() : string
- Retrieves all url parameters.
- buddyc_remove_param() : string
- Removes a url parameter.
- buddyc_strip_params() : string
- Removes all url parameters.
Functions
buddyc_param_manager()
Creates a new ParamManager instance.
buddyc_param_manager([string $url = null ]) : mixed
Parameters
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
buddyc_get_param()
Retrieves the value of a url parameter.
buddyc_get_param(string $param[, string $url = null ]) : mixed
Parameters
- $param : string
-
The key of the parameter to retrieve.
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
buddyc_get_all_params()
Retrieves all url parameters.
buddyc_get_all_params([string $url = null ]) : array<string|int, mixed>
Parameters
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
Return values
array<string|int, mixed> —An associative array of all url parameters.
buddyc_add_params()
Retrieves all url parameters.
buddyc_add_params(array<string|int, mixed> $params[, string $url = null ]) : string
Parameters
- $params : array<string|int, mixed>
-
An associative array of params and values.
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
Return values
string —The new url.
buddyc_remove_param()
Removes a url parameter.
buddyc_remove_param(string $param[, string $url = null ]) : string
Parameters
- $param : string
-
The param to remove.
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
Return values
string —The new url.
buddyc_strip_params()
Removes all url parameters.
buddyc_strip_params([string $url = null ]) : string
Parameters
- $url : string = null
-
Optional. The url to modify. Defaults to the current url.
Tags
Return values
string —The new url.