ContentService Class
Service for content settings retrieval
Methods
get
(
-
cb
Retrieves the content settings. When settings are not found in storage the service will generate defaults and persist them.
Parameters:
-
cb
FunctionCallback function
getDefaultSettings
()
Object
Retrieves the default content settings from installation
Returns:
Object:
Content settings
getSettings
(
-
cb
A long named alias of 'get'
Parameters:
-
cb
FunctionCallback function
getTimestampText
(
static
-
options
Parameters:
-
options
Object-
date
Date -
format
String -
twoDigitDate
Boolean -
displayTime
Boolean -
timeFormat
String -
twoDigitTime
Boolean -
ls
Localization
-
getTimestampTextFromSettings
(
-
date
-
contentSettings
Returns a formatted time stamp from a date
Parameters:
-
date
Date -
contentSettings
Object