Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
dates.inc.php File Reference

Functions

 getWeekday ($day_num, $short=TRUE)
 
 getWeekdays ($short=true)
 
 getMonthName ($month, $short=true)
 
 leadingZero ($num)
 
 veranstaltung_beginn ($seminar_id= '', $return_mode= '')
 
 veranstaltung_beginn_from_metadata ($reg_irreg, $sem_begin, $start_woche, $start_termin, $turnus_data, $return_mode='int')
 
 shrink_dates ($dates)
 
 vorbesprechung ($seminar_id, $type= 'standard')
 
 get_sem_name ($time)
 
 get_sem_num ($time)
 
 get_sem_num_sem_browse ()
 
 get_semester ($seminar_id)
 
 delete_date ($termin_id, $topic_delete=TRUE, $folder_move=TRUE, $sem_id=0)
 
 delete_range_of_dates ($range_id, $topics=FALSE)
 
 isSchedule ($sem_id, $presence_dates_only=TRUE, $clearcache=FALSE)
 
 isMetadateCorrespondingDate ($termin_id, $begin= '', $end= '', $seminar_id='')
 
 getPresenceTypeClause ()
 
 getPresenceTypes ()
 
 getFormattedRooms ($rooms, $link=false)
 
 getPlainRooms ($rooms)
 

Function Documentation

delete_date (   $termin_id,
  $topic_delete = TRUE,
  $folder_move = TRUE,
  $sem_id = 0 
)
delete_range_of_dates (   $range_id,
  $topics = FALSE 
)
get_sem_name (   $time)
get_sem_num (   $time)
get_sem_num_sem_browse ( )
get_semester (   $seminar_id)

Die Funktion get_semester gibt den oder die Semester einer speziellen Veranstaltung aus.

getFormattedRooms (   $rooms,
  $link = false 
)

Return an array of room snippets, possibly linked

Parameters
array$roomsan associative array of rooms
bool$htmltrue if you want links, otherwise false
Returns
array an array of (formatted) room snippets
getMonthName (   $month,
  $short = true 
)

getMonthName returns the localized name of a certain month in either the abbreviated form (default) or as the actual name.

Parameters
int$monthMonth number
bool$shortDisplay the abbreviated version or the actual name of the month (defaults to abbreviated)
Returns
String Month name
Exceptions
Exceptionwhen passed an invalid month number
getPlainRooms (   $rooms)

Return an array of room snippets without any formatting

Parameters
array$roomsan associative array of rooms
Returns
array an array of room snippets
getPresenceTypeClause ( )

a small helper funktion to get the type query for "Sitzungstermine" (this dates are important to get the regularly, presence dates for a seminar

Returns
string the SQL-clause to select only the "Sitzungstermine"
getPresenceTypes ( )
getWeekday (   $day_num,
  $short = TRUE 
)
getWeekdays (   $short = true)

Returns an array with strings of all weekdays, starting on monday.

Parameters
bool$shortIf this parameter is set to true, a short version of the day is returned. Defaults to true.
isMetadateCorrespondingDate (   $termin_id,
  $begin = '',
  $end = '',
  $seminar_id = '' 
)

this functions checks, if a date corresponds with a metadate

Parameters
stringtermin_id
Returns
boolean TRUE, if the date corresponds to a metadate
isSchedule (   $sem_id,
  $presence_dates_only = TRUE,
  $clearcache = FALSE 
)
leadingZero (   $num)
shrink_dates (   $dates)
veranstaltung_beginn (   $seminar_id = '',
  $return_mode = '' 
)
veranstaltung_beginn_from_metadata (   $reg_irreg,
  $sem_begin,
  $start_woche,
  $start_termin,
  $turnus_data,
  $return_mode = 'int' 
)
vorbesprechung (   $seminar_id,
  $type = 'standard' 
)