Stud.IP  trunk Revision
ContentBoxHelper Class Reference
Collaboration diagram for ContentBoxHelper:
Collaboration graph

Static Public Member Functions

static classes ($id, $is_new=false)
 
static switchhref ($id, $params=[])
 
static href ($id, $params=[])
 
static visitType ($type, $ids)
 

Member Function Documentation

◆ classes()

static classes (   $id,
  $is_new = false 
)
static

Returns the class open if the id was clicked

Parameters
String$idid of the content box
int$chdatelast change of the displayed article
Returns
String open if the contentbox is open otherwise an empty String
Here is the call graph for this function:

◆ href()

static href (   $id,
  $params = [] 
)
static

Link to the contentbox (Required when some action should take place)

Parameters
String$idId of the content box
Array$paramsother needed parameters
Returns
String Url to the contentbox
Here is the call graph for this function:

◆ switchhref()

static switchhref (   $id,
  $params = [] 
)
static

Produces an html link to open a contentbox if javascript is not active

Parameters
String$idId of the content box
Array$paramsother needed parameters
Returns
String Url to open the contentbox
Here is the call graph for this function:

◆ visitType()

static visitType (   $type,
  $ids 
)
static

Sets an object as visited

Parameters
String$typethe type to be set in the database
Array$idsArray of ids that might be visited with the given type
Here is the call graph for this function:

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