API Docs for: 0.8.0
Show:

CommentService Class

Module: Theme
Parent Module: Services

Retrieves comment information

Methods

getCommentingUser

(
  • user
)

Retrieves the necessary user information for a commenter

Parameters:

  • user Object

    A user object

getCommentingUser

(
  • user
)
static

Retrieves the necessary user information for a commenter

Parameters:

  • user Object

    A user object

getCommentsTemplates

(
  • contentSettings
  • output
)

Retrieves the template for comments

Parameters:

  • contentSettings Object

    The content settings to use with retrieval

  • output Function

    Callback function

validate

(
  • context
  • cb
)

Validates a comment

Parameters:

  • context Object
  • cb Function

(
  • context
  • service
  • cb
)
static

Parameters:

  • context Object
  • service TopicService

    An instance of the service that triggered the event that called this handler

  • cb Function

    A callback that takes a single parameter: an error if occurred

(
  • context
  • service
  • cb
)
static

Parameters:

  • context Object
  • service TopicService

    An instance of the service that triggered the event that called this handler

  • cb Function

    A callback that takes a single parameter: an error if occurred

validate

(
  • context
  • cb
)
static

Parameters:

  • context Object
    • data Object

      The DTO that was provided for persistence

    • service TopicService

      An instance of the service that triggered the event that called this handler

  • cb Function

    A callback that takes a single parameter: an error if occurred

Properties

articleService

ArticleService

contentService

ContentService

TYPE

String private static

userService

UserService