modules/Calendar/Calendar.php

Show: inherited
Table of Contents

\Calendar

Package:

Properties

Propertypublic  $acts_arr= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $celcount= ''
Details
Type
n/a
Propertypublic  $cells_per_day= ''
Details
Type
n/a
Propertypublic  $dashlet= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $date_time= ''
Details
Type
n/a
Propertypublic  $day_end_time= ''
Details
Type
n/a
Propertypublic  $day_start_time= ''
Details
Type
n/a
Propertypublic  $enable_repeat= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $grid_start_ts= ''
Details
Type
n/a
Propertypublic  $items= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivatebool  $print= 'false'

Whether is print mode.
Default valuefalseDetails
Type
bool
Propertypublic  $scroll_slot= ''
Details
Type
n/a
Propertypublic  $shared_ids= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $show_calls= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $show_tasks= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $style= ''
Details
Type
n/a
Propertypublic  $time_step= '60'
Default value60Details
Type
n/a
Propertypublic  $view= ''week''
Default value'week'Details
Type
n/a

Methods

methodpublic__construct( string $view = "day", array $time_arr = array() ) : void

constructor

Parameters
Name Type Description
$view string
$time_arr array
methodpublicadd_activities( \User $user, string $type = 'sugar' ) : void

loads array of objects

Parameters
Name Type Description
$user \User

user object

$type string
methodpubliccalculate_day_range( ) : void

calculate count of timeslots per visible day, calculates day start and day end in minutes

methodprotectedcalculate_grid_start_ts( ) : void

Calculate timestamp the calendar grid should be started from

methodpublicget_neighbor_date_str( string $direction ) : string

Get date string of next or previous calendar grid

Parameters
Name Type Description
$direction string

next or previous

Returns
Type Description
string
methodpublicinit_shared( ) : void

initialize ids of shared users

methodpublicisPrint( ) : void

methodpublicload_activities( ) : void

Load activities data to array

methodpublicsetPrint(  $print ) : void

Parameters
Name Type Description
$print
Documentation was generated by DocBlox 0.18.1.