modules/Calendar/Calendar.php
\Calendar
Package:
Properties
Methods
__construct(
string $view
=
"day", array $time_arr
=
array()
)
:
void
constructor
Parameters
Name | Type | Description |
---|---|---|
$view | string | |
$time_arr | array |
add_activities(
\User $user, string $type
=
'sugar'
)
:
void
loads array of objects
Parameters
Name | Type | Description |
---|---|---|
$user | \User | user object |
$type | string |
calculate_day_range(
)
:
void
calculate count of timeslots per visible day, calculates day start and day end in minutes
get_neighbor_date_str(
string $direction
)
:
string
Get date string of next or previous calendar grid
Parameters
Returns
Name | Type | Description |
---|---|---|
$direction | string | next or previous |
Type | Description |
---|---|
string |