modules/Calendar/CalendarUtils.php
\CalendarUtils
Package:
Methods
build_repeat_sequence(
string $date_start, array $params
)
:
array
static
Build array of datetimes for recurring meetings
Parameters
Returns
Name | Type | Description |
---|---|---|
$date_start | string | |
$params | array |
Type | Description |
---|---|
array |
correctRecurrences(
\SugarBean $bean, string $beanId
)
:
void
static
check if meeting has repeat children and pass repeat_parent over to the 2nd meeting in sequence
Parameters
Name | Type | Description |
---|---|---|
$bean | \SugarBean | |
$beanId | string |
get_first_day_of_week(
\SugarDateTime $date
)
:
\SugarDateTime
static
Find first day of week according to user's settings
Parameters
Returns
Name | Type | Description |
---|---|---|
$date | \SugarDateTime |
Type | Description |
---|---|
\SugarDateTime | $date |
get_sendback_array(
\SugarBean $bean
)
:
array
static
Get array that will be sent back to ajax frontend
Parameters
Returns
Name | Type | Description |
---|---|---|
$bean | \SugarBean |
Type | Description |
---|---|
array |
get_sendback_repeat_data(
\SugarBean $bean
)
:
array
static
Get array of repeat data
Parameters
Returns
Name | Type | Description |
---|---|---|
$bean | \SugarBean |
Type | Description |
---|---|
array |
get_time_data(
\SugarBean $bean
)
:
array
static
Get array of needed time data
Parameters
Returns
Name | Type | Description |
---|---|---|
$bean | \SugarBean |
Type | Description |
---|---|
array |
markRepeatDeleted(
\SugarBean $bean
)
:
void
static
Delete recurring activities and their invitee relationships
Parameters
Name | Type | Description |
---|---|---|
$bean | \SugarBean |
save_repeat_activities(
\SugarBean $bean, array $time_arr
)
:
array
static
Save repeat activities
Parameters
Returns
Name | Type | Description |
---|---|---|
$bean | \SugarBean | |
$time_arr | array | array of datetimes |
Type | Description |
---|---|
array |