Definition at line 31 of file FacebookUrlManipulator.php.
◆ appendParamsToUrl()
static Facebook\Url\FacebookUrlManipulator::appendParamsToUrl |
( |
|
$url, |
|
|
array |
$newParams = [] |
|
) |
| |
|
static |
Gracefully appends params to the URL.
- Parameters
-
string | $url | The URL that will receive the params. |
array | $newParams | The params to append to the URL. |
- Returns
- string
Definition at line 77 of file FacebookUrlManipulator.php.
◆ baseGraphUrlEndpoint()
static Facebook\Url\FacebookUrlManipulator::baseGraphUrlEndpoint |
( |
|
$urlToTrim | ) |
|
|
static |
Trims off the hostname and Graph version from a URL.
- Parameters
-
string | $urlToTrim | The URL the needs the surgery. |
- Returns
- string The $urlToTrim with the hostname and Graph version removed.
Definition at line 163 of file FacebookUrlManipulator.php.
◆ forceSlashPrefix()
static Facebook\Url\FacebookUrlManipulator::forceSlashPrefix |
( |
|
$string | ) |
|
|
static |
◆ getParamsAsArray()
static Facebook\Url\FacebookUrlManipulator::getParamsAsArray |
( |
|
$url | ) |
|
|
static |
Returns the params from a URL in the form of an array.
- Parameters
-
string | $url | The URL to parse the params from. |
- Returns
- array
Definition at line 107 of file FacebookUrlManipulator.php.
◆ mergeUrlParams()
static Facebook\Url\FacebookUrlManipulator::mergeUrlParams |
( |
|
$urlToStealFrom, |
|
|
|
$urlToAddTo |
|
) |
| |
|
static |
Adds the params of the first URL to the second URL.
Any params that already exist in the second URL will go untouched.
- Parameters
-
string | $urlToStealFrom | The URL harvest the params from. |
string | $urlToAddTo | The URL that will receive the new params. |
- Returns
- string The $urlToAddTo with any new params from $urlToStealFrom.
Definition at line 129 of file FacebookUrlManipulator.php.
◆ removeParamsFromUrl()
static Facebook\Url\FacebookUrlManipulator::removeParamsFromUrl |
( |
|
$url, |
|
|
array |
$paramsToFilter |
|
) |
| |
|
static |
Remove params from a URL.
- Parameters
-
string | $url | The URL to filter. |
array | $paramsToFilter | The params to filter from the URL. |
- Returns
- string The URL with the params removed.
Definition at line 41 of file FacebookUrlManipulator.php.
The documentation for this class was generated from the following file: