modules/Calendar/Calendar.php
\Calendar
Package:
Properties
Methods

__construct(
string $view
=
"day", array $time_arr
=
array()
)
:
voidconstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $view | string | |
| $time_arr | array |

add_activities(
\User $user, string $type
=
'sugar'
)
:
voidloads array of objects
Parameters
| Name | Type | Description |
|---|---|---|
| $user | \User | user object |
| $type | string |

calculate_day_range(
)
:
voidcalculate count of timeslots per visible day, calculates day start and day end in minutes

get_neighbor_date_str(
string $direction
)
:
stringGet date string of next or previous calendar grid
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $direction | string | next or previous |
| Type | Description |
|---|---|
| string |