API Docs for: 0.8.0
Show:

ContentService Class

Defined in: include/content.js:23
Module: Services

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 Function

    Callback function

getDefaultSettings

() Object

Retrieves the default content settings from installation

Returns:

Object:

Content settings

getSettings

(
  • cb
)

A long named alias of 'get'

Parameters:

  • cb Function

    Callback function

getTimestampText

(
  • options
)
static

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

Properties

CONTENT_SETTINGS_REF

String private static

DEFAULT_SETTINGS

String private static