|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| __construct ($entries, $controller) | |
| groupEntries ($grouped=true) | |
| setReadOnly ($readonly=true) | |
| getContext () | |
| getDays () | |
| getInsertFunction () | |
| getColumns () | |
Public Member Functions inherited from CalendarView | |
| __construct ($entries=array()) | |
| setHeight ($height) | |
| setRange ($start_hour, $end_hour) | |
| addColumn ($title, $url="", $id=null) | |
| addEntry ($entry_array) | |
| setInsertFunction ($js_function_object) | |
| render ($params=array()) | |
| getEntries () | |
| getMatrix () | |
| getRange () | |
| isGrouped () | |
| getHeight () | |
| getOverallHeight () | |
Protected Attributes | |
| $read_only = false | |
| $days = array(1,2,3,4,5) | |
Protected Attributes inherited from CalendarView | |
| $entries = array() | |
| $entry_columns = array() | |
| $height = 40 | |
| $grouped = false | |
| $start_hour = 8 | |
| $end_hour = 21 | |
| $insertFunction = "" | |
| $templates = array() | |
| $view_id | |
Static Protected Attributes | |
| static | $day_names = array("Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag") |
Static Protected Attributes inherited from CalendarView | |
| static | $number_of_instances = 1 |
Additional Inherited Members | |
Protected Member Functions inherited from CalendarView | |
| checkEntries ($entries) | |
Kind of bean class for the calendar view.
| __construct | ( | $entries, | |
| $controller | |||
| ) |
You need to pass an instance of this class to the template. The constructor expects an array of entries of the following type: array( $day_number => array(array ( 'color' => the color in hex (css-like, without the #) 'start' => the (start hour * 100) + (start minute) 'end' => the (end hour * 100) + (end minute) //'day' => day of week (0 = Sunday, ... , 6 = Saturday) 'title' => the entry`s title 'content' => whatever shall be the content of the entry as a string ) ...) ... )
| mixed | $entries | an array of entries (see above) |
| string | $controller | the name of the controller. Used to create links. |
| getColumns | ( | ) |
returns all columns of the calendar-view nad removes the url if read_only is set
Reimplemented from CalendarView.
| getContext | ( | ) |
| getDays | ( | ) |
| getInsertFunction | ( | ) |
returns the previously set javasscript insert-function only if read_only is not set.
Reimplemented from CalendarView.
| groupEntries | ( | $grouped = true | ) |
Call this function th enable/disable the grouping of entries with the same start and end.
| bool | $group | optional, defaults to true |
Reimplemented from CalendarView.
| setReadOnly | ( | $readonly = true | ) |
| bool | $readonly | true to make it read only, false otherwise |
|
staticprotected |
|
protected |
|
protected |