|
const static | find (string $id, array $search_types=['sem', 'user', 'inst', 'fak']) |
|
static | createRange (string $type, string $id) |
|
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
◆ createRange()
static createRange |
( |
string |
$type, |
|
|
string |
$id |
|
) |
| |
|
static |
Create a range by given type and id.
- Parameters
-
- Returns
- Range any of the supported range types
- Exceptions
-
Exception | when an invalid range type was given |
◆ find()
const static find |
( |
string |
$id, |
|
|
array |
$search_types = ['sem' , |
|
|
'user' |
, |
|
|
'inst' |
, |
|
|
'fak'] |
|
|
) |
| |
|
static |
Finds a Range for a given id or false if there is no Range with the id.
- Parameters
-
string | $id | Range id |
array | $search_types | array can have values of 'sem', 'user', 'inst' and/or 'fak' |
- Returns
- Range|false
◆ TYPE_MAPPING
The documentation for this class was generated from the following file: