Stud.IP  4.2 Revision
ResponsiveHelper Class Reference
Collaboration diagram for ResponsiveHelper:
Collaboration graph

Static Public Member Functions

static getNavigationArray ()
 

Static Protected Member Functions

static getChildren (Navigation $navigation, $path)
 
static getURL ($url, $params=[])
 
static getAssetsURL ($url)
 

Detailed Description

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
Since
Stud.IP 3.2

Member Function Documentation

◆ 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$urlThe 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$navigationThe navigation object
String$pathCurrent path segment
Returns
Array containing the children (+ grandchildren...)
Here is the call graph for this function:

◆ getNavigationArray()

static getNavigationArray ( )
static

Returns the current navigation as an array.

Returns
Array containing the navigation
Here is the call graph for this function:

◆ 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$urlThe url to compress
Returns
String containing the compressed url
Here is the call graph for this function:

The documentation for this class was generated from the following file: