ResponsiveHelper.php
This class collects helper methods for Stud.IP's responsive design.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
- Copyright
- Stud.IP core group
- Since
- Stud.IP 3.2
◆ getAssetsURL()
static getAssetsURL |
( |
|
$url | ) |
|
|
staticprotected |
Try to get a compressed version of the passed assets url. The absolute uri of the Stud.IP installation is stripped from the url.
- Parameters
-
String | $url | The assets url to compress |
- Returns
- String containing the compressed assets url
◆ getChildren()
static getChildren |
( |
Navigation |
$navigation, |
|
|
|
$path |
|
) |
| |
|
staticprotected |
Recursively build a navigation array from the subnavigation/children of a navigation object.
- Parameters
-
Navigation | $navigation | The navigation object |
String | $path | Current path segment |
- Returns
- Array containing the children (+ grandchildren...)
◆ getNavigationArray()
static getNavigationArray |
( |
| ) |
|
|
static |
Returns the current navigation as an array.
- Returns
- Array containing the navigation
◆ getURL()
static getURL |
( |
|
$url, |
|
|
|
$params = [] |
|
) |
| |
|
staticprotected |
Try to get a compressed version of the passed navigation url. The URL is processed is processed by URLHelper and the absolute uri of the Stud.IP installation is stripped from it afterwards.
- Parameters
-
String | $url | The url to compress |
- Returns
- String containing the compressed url
The documentation for this class was generated from the following file: