Stud.IP
5.4
|
Public Member Functions | |
__construct ($entries, $controller) | |
groupEntries ($grouped=true) | |
getContext () | |
getDays () | |
getInsertFunction () | |
getColumns () | |
![]() | |
__construct ($entries=[]) | |
setHeight ($height) | |
setRange ($start_hour, $end_hour) | |
addColumn ($title, $url="", $id=null) | |
addEntry ($entry_array) | |
groupEntries ($grouped=true) | |
setInsertFunction ($js_function_object) | |
render ($params=[]) | |
getEntries () | |
getMatrix () | |
getRange () | |
isGrouped () | |
getHeight () | |
getOverallHeight () | |
getInsertFunction () | |
getColumns () | |
setReadOnly ($readonly=true) | |
getReadOnly () | |
Protected Attributes | |
$days = [1,2,3,4,5] | |
$context | |
![]() | |
$entries = [] | |
$entry_columns = [] | |
$height = 40 | |
$grouped = false | |
$start_hour = 8 | |
$end_hour = 21 | |
$insertFunction = "" | |
$templates = [] | |
$read_only = false | |
$view_id | |
Additional Inherited Members | |
![]() | |
$sorted_entries = [] | |
![]() | |
checkEntries ($entries) | |
![]() | |
static | $number_of_instances = 1 |
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
getContext | ( | ) |
getDays | ( | ) |
getInsertFunction | ( | ) |
returns the previously set javasscript insert-function only if read_only is not set.
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 |
|
protected |
|
protected |