Stud.IP  5.4
Semester Class Reference
Inheritance diagram for Semester:
RouteMap

Public Member Functions

 __construct ()
 
 getSemesters ()
 
 getSemesterWeek (int $timestamp)
 
 getSemester ($id)
 
- Public Member Functions inherited from RouteMap
 __construct ()
 
 init ($router, $route)
 
 paginated ($data, $total, $uri_params=[], $query_params=[])
 
 paginate ($uri_format, $total, $offset=null, $limit=null)
 
 collect ($data)
 
 status ($status)
 
 headers ($headers=[])
 
 body ($body)
 
 contentType ($mime_type, $params=[])
 
 error ($status, $body=null)
 
 etag ($value, $strong_etag=true, $new_resource=null)
 
 expires ($amount, $cache_control=[])
 
 cacheControl ($values)
 
 halt ()
 
 lastModified ($time)
 
 notFound ($body=null)
 
 redirect ($url, $args=null)
 
 sendFile ($_path, $opts=[])
 
 url ($addr, $url_params=null)
 
 urlf ($addr_f, $format_params, $url_params=null)
 
 getRoutes ($http_method=null)
 
 getResponse ()
 

Additional Inherited Members

- Protected Member Functions inherited from RouteMap
 extractConditions ($docblock, $conditions=[])
 
- Protected Attributes inherited from RouteMap
 $router
 
 $route
 
 $data = null
 
 $response
 
 $pagination = false
 
 $offset
 
 $limit
 

Detailed Description

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m
mlunz.nosp@m.ena@.nosp@m.uos.d.nosp@m.e GPL 2 or later

semester_id ^[0-9a-f]{1,32}$

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ getSemester()

getSemester (   $id)

Returns a single semester.

/semester/:semester_id

◆ getSemesters()

getSemesters ( )

Returns a list of all semesters.

/semesters

◆ getSemesterWeek()

getSemesterWeek ( int  $timestamp)

Returns the semester week as string for a given string

/semester/:timestamp/week


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