Stud.IP  5.4
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

◆ createRange()

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

◆ find()

const static find (   $id)
static

Field Documentation

◆ TYPE_MAPPING

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

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