\C_Calendar_Settings

Class C_Calendar_Settings This class consists of DB operations for loading calendar settings, edit etc

Description: Handles Calendar settings like language, time zone, default view, shortdate & longdate formats, time format and start date at the moment

Summary

Methods
Properties
Constants
__construct()
loadCalendarSettings()
saveCalendarSettings()
updateCalendarSettings()
$language
$time_zone
$default_view
$shortdate_format
$longdate_format
$timeformat
$start_day
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$language

$language : string

Type

string — , a set of languages can be setup, not in use in this version 1.0.1

$time_zone

$time_zone : string

Type

string — , a set of different timezones, not in use in this version 1.0.1

$default_view

$default_view : string

Type

string — , a set of views provided by full calendar Values: Month, Week, Day, Agenda

$shortdate_format

$shortdate_format : string

Type

string — , a set of date formats as short form of dates Formats: MM/dd/yyyy, dd/MM/yyyy, dd-MM-yyyy, MM-dd-yyyy, dd-MM-yy, MMM dd, yyyy

$longdate_format

$longdate_format

$timeformat

$timeformat

$start_day

$start_day : string

Type

string — , the first day of the week Values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

Methods

__construct()

__construct()

Constructor function for this class

Description: No use of this

loadCalendarSettings()

loadCalendarSettings( $userID) : null|\array,

Loads all calendar settings

Description: Loads all calendar settings for current logged in user

Parameters

$userID

Returns

null|\array, —

the set of current calendar settings for given user id

saveCalendarSettings()

saveCalendarSettings( $params) : bool|\integer,

Saves calendar settings

Description: Saves calendar settings based on user request

Parameters

$params

Returns

bool|\integer, —

if success returns the new calendar settings id, otherwise false

updateCalendarSettings()

updateCalendarSettings( $params,  $id) : bool|\integer,

Updates calendar settings

Description: Updates calendar settings based on user request

Parameters

$params
$id

Returns

bool|\integer, —

if success then returns calendar settings id, otherwise false