Stud.IP  jlu_3.3 Revision
dates.inc.php File Reference

Functions

 getWeekday ($day_num, $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')
 
 view_turnus ($seminar_id, $short=FALSE, $meta_data=false, $start_time=false)
 
 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, $start_sem_only=FALSE)
 
 getCorrectedSemesterVorlesBegin ($semester_num)
 
 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)
 
 isDatesMultiSem ($sem_id)
 
 getMetadateCorrespondingDates ($sem_id, $presence_dates_only)
 
 isMetadateCorrespondingDate ($termin_id, $begin='', $end='', $seminar_id='')
 
 getCorrespondingMetadates ($termin_id, $begin='', $end='', $seminar_id='')
 
 getPresenceTypeClause ()
 
 getPresenceTypes ()
 
 Termin_Eingabe_javascript ($t=0, $n=0, $atime=0, $ss='', $sm='', $es='', $em='', $bla='')
 
 getFormattedRooms ($rooms, $link=false)
 
 getPlainRooms ($rooms)
 

Function Documentation

◆ delete_date()

delete_date (   $termin_id,
  $topic_delete = TRUE,
  $folder_move = TRUE,
  $sem_id = 0 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_range_of_dates()

delete_range_of_dates (   $range_id,
  $topics = FALSE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_sem_name()

get_sem_name (   $time)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_sem_num()

get_sem_num (   $time)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_sem_num_sem_browse()

get_sem_num_sem_browse ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_semester()

get_semester (   $seminar_id,
  $start_sem_only = FALSE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCorrectedSemesterVorlesBegin()

getCorrectedSemesterVorlesBegin (   $semester_num)
Here is the call graph for this function:

◆ getCorrespondingMetadates()

getCorrespondingMetadates (   $termin_id,
  $begin = '',
  $end = '',
  $seminar_id = '' 
)

◆ getFormattedRooms()

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
Here is the call graph for this function:

◆ getMetadateCorrespondingDates()

getMetadateCorrespondingDates (   $sem_id,
  $presence_dates_only 
)

this functions extracts all the dates, which are corresponding to a metadate

Parameters
stringseminar_id
Returns
array ["metadate_numer"]["termin_id"] "metadate_number" the numerber of the corresponding metadate. first metadate (in chronological order) is always 0 "termin_id" the termin_id that are corresponding to the given metdat_number
Here is the call graph for this function:

◆ getPlainRooms()

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPresenceTypeClause()

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"
Here is the caller graph for this function:

◆ getPresenceTypes()

getPresenceTypes ( )
Here is the caller graph for this function:

◆ getWeekday()

getWeekday (   $day_num,
  $short = TRUE 
)
Here is the caller graph for this function:

◆ isDatesMultiSem()

isDatesMultiSem (   $sem_id)
Here is the call graph for this function:

◆ isMetadateCorrespondingDate()

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
Here is the caller graph for this function:

◆ isSchedule()

isSchedule (   $sem_id,
  $presence_dates_only = TRUE,
  $clearcache = FALSE 
)
Here is the call graph for this function:

◆ leadingZero()

leadingZero (   $num)
Here is the caller graph for this function:

◆ shrink_dates()

shrink_dates (   $dates)
Here is the call graph for this function:

◆ Termin_Eingabe_javascript()

Termin_Eingabe_javascript (   $t = 0,
  $n = 0,
  $atime = 0,
  $ss = '',
  $sm = '',
  $es = '',
  $em = '',
  $bla = '' 
)

TerminEingabeHilfe

Liefert HTML-Code für Grafik und popup window für Kalender

Parameters
intWerte von 1 bis 7, bestimmt welche Formularfeldnamen verwendet werden
intcounter wenn mehrere TerminFelder auf einer Seite
stringursprüngliche StartStunde
stringursprüngliche StartMinute
stringursprüngliche EndStunde
stringursprüngliche EndMinute
Returns
string html-code für popup window
Here is the call graph for this function:

◆ veranstaltung_beginn()

veranstaltung_beginn (   $seminar_id = '',
  $return_mode = '' 
)
Here is the caller graph for this function:

◆ veranstaltung_beginn_from_metadata()

veranstaltung_beginn_from_metadata (   $reg_irreg,
  $sem_begin,
  $start_woche,
  $start_termin,
  $turnus_data,
  $return_mode = 'int' 
)
Here is the call graph for this function:

◆ view_turnus()

view_turnus (   $seminar_id,
  $short = FALSE,
  $meta_data = false,
  $start_time = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vorbesprechung()

vorbesprechung (   $seminar_id,
  $type = 'standard' 
)
Here is the call graph for this function:
Here is the caller graph for this function: