Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
CycleData Class Reference
Collaboration diagram for CycleData:
Collaboration graph

Public Member Functions

 __construct ($cycle_data=FALSE)
 getDescription ()
 setDescription ($description)
 setStart ($start_stunde, $start_minute)
 setEnd ($end_stunde, $end_minute)
 getStartStunde ()
 getStartMinute ()
 getEndStunde ()
 getEndMinute ()
 getMetaDateID ()
 getDay ()
 setDay ($day)
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 storeCycleDate ()
 store ()
 restore ()
 delete ($removeSingles=TRUE)
 deleteSingleDate ($date_id, $filterStart, $filterEnd)
 unDeleteSingleDate ($date_id, $filterStart, $filterEnd)
 readSingleDates ($start=0, $end=0)
 getSingleDates ()
 getFreeTextPredominantRoom ($filterStart=0, $filterEnd=0)
 getPredominantRoom ($filterStart=0, $filterEnd=0)
 toString ($short=false)
 toArray ()
 autoAssignIssues ($themen, $filterStart, $filterEnd)
 removeRequest ($singledate_id, $filterStart, $filterEnd)

Data Fields

 $termine = NULL

Constructor & Destructor Documentation

__construct (   $cycle_data = FALSE)

Constructor

Parameters
SeminarCycleDate|array

Here is the call graph for this function:

Member Function Documentation

__get (   $field)
__isset (   $field)
__set (   $field,
  $value 
)
autoAssignIssues (   $themen,
  $filterStart,
  $filterEnd 
)

assign single dates one by one to a list of issues seems not to be the right place for this method

Deprecated:
Parameters
array$themen
int$filterStart
int$filterEnd

Here is the call graph for this function:

delete (   $removeSingles = TRUE)

deletes cycledate and corresponding single dates

Parameters
boolean$removeSingles
Returns
boolean

Here is the call graph for this function:

deleteSingleDate (   $date_id,
  $filterStart,
  $filterEnd 
)

this does not delete a single date, but set it to be marked as to not take place. do not use!

Deprecated:
Parameters
sting$date_id
int$filterStart
int$filterEnd

Here is the call graph for this function:

getDay ( )
getDescription ( )
getEndMinute ( )
getEndStunde ( )
getFreeTextPredominantRoom (   $filterStart = 0,
  $filterEnd = 0 
)

returns an assoc array, keys are room names values are number of dates for this room give timestamps as params to filter by time range

Parameters
int$filterStart
int$filterEnd
Returns
array

Here is the call graph for this function:

getMetaDateID ( )
getPredominantRoom (   $filterStart = 0,
  $filterEnd = 0 
)

returns an assoc array, keys are resource_id of rooms values are number of dates for this room give timestamps as params to filter by time range

Parameters
int$filterStart
int$filterEnd
Returns
array

Here is the call graph for this function:

Here is the caller graph for this function:

getSingleDates ( )

get the currently loaded single dates, or all when no dates are loaded. you must use readSingleDates() before to be shure what to get!

Returns
array of SingleDate

Here is the call graph for this function:

getStartMinute ( )
getStartStunde ( )
readSingleDates (   $start = 0,
  $end = 0 
)

load corresponding single dates from database give timestamps as params to filter by time range

Parameters
int$start
int$end
Returns
boolean

Here is the call graph for this function:

Here is the caller graph for this function:

removeRequest (   $singledate_id,
  $filterStart,
  $filterEnd 
)

use SingleDate::removeRequest()

Deprecated:
Parameters
string$singledate_id
int$filterStart
int$filterEnd

Here is the call graph for this function:

restore ( )

refreshes the currently loaded single dates from database, does not reload cycledate data! should be private

Returns
boolean

Here is the call graph for this function:

setDay (   $day)

Here is the caller graph for this function:

setDescription (   $description)

Here is the caller graph for this function:

setEnd (   $end_stunde,
  $end_minute 
)

Here is the caller graph for this function:

setStart (   $start_stunde,
  $start_minute 
)

Here is the caller graph for this function:

store ( )

stores the single dates belonging to this cycledate, but only the ones which are currently loaded! (see readSingleDates()) should be private

Returns
boolean

Here is the call graph for this function:

Here is the caller graph for this function:

storeCycleDate ( )

stores only the cycledate data

Returns
boolean
toArray ( )

return all fields from SeminarCycleDate and old style metadata_dates, combined with info about rooms

Returns
array

Here is the call graph for this function:

toString (   $short = false)

returns a formatted string for cycledate

See Also
SeminarCycleDate::toString()
Parameters
boolean$short
Returns
string

Here is the caller graph for this function:

unDeleteSingleDate (   $date_id,
  $filterStart,
  $filterEnd 
)

this should ressurect a single date whis is marked as to not take place. do not use!

Deprecated:
Parameters
sting$date_id
int$filterStart
int$filterEnd

Here is the call graph for this function:

Field Documentation

$termine = NULL

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