Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
RangeFactory Class Reference

Static Public Member Functions

const static find ($id)
 
static createRange ($type, $id)
 

Data Fields

const TYPE_MAPPING
 

Detailed Description

Factory for ranges.

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 4.1

Member Function Documentation

static createRange (   $type,
  $id 
)
static

Create a range by given type and id.

Parameters
string$typeRange type
mixed$idRange id
Returns
mixed any of the supported range types
Exceptions
Exceptionwhen an invalid range type was given
const static find (   $id)
static

Field Documentation

const TYPE_MAPPING
Initial value:
= [
'sem' => 'course'

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