modules/Calendar/CalendarUtils.php

Show: inherited
Table of Contents

\CalendarUtils

Package:

Methods

methodpublicbuild_repeat_sequence( string $date_start, array $params ) : array
static

Build array of datetimes for recurring meetings

Parameters
Name Type Description
$date_start string
$params array
Returns
Type Description
array
methodpubliccorrectRecurrences( \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
methodpublicget_fields( ) : array
static

Get list of needed fields for modules

Returns
Type Description
array
methodpublicget_first_day_of_week( \SugarDateTime $date ) : \SugarDateTime
static

Find first day of week according to user's settings

Parameters
Name Type Description
$date \SugarDateTime
Returns
Type Description
\SugarDateTime $date
methodpublicget_sendback_array( \SugarBean $bean ) : array
static

Get array that will be sent back to ajax frontend

Parameters
Name Type Description
$bean \SugarBean
Returns
Type Description
array
methodpublicget_sendback_repeat_data( \SugarBean $bean ) : array
static

Get array of repeat data

Parameters
Name Type Description
$bean \SugarBean
Returns
Type Description
array
methodpublicget_time_data( \SugarBean $bean ) : array
static

Get array of needed time data

Parameters
Name Type Description
$bean \SugarBean
Returns
Type Description
array
methodpublicmarkRepeatDeleted( \SugarBean $bean ) : void
static

Delete recurring activities and their invitee relationships

Parameters
Name Type Description
$bean \SugarBean
methodpublicsave_repeat_activities( \SugarBean $bean, array $time_arr ) : array
static

Save repeat activities

Parameters
Name Type Description
$bean \SugarBean
$time_arr array

array of datetimes

Returns
Type Description
array
Documentation was generated by DocBlox 0.18.1.