Class: CommentCollection

OCA.Comments.CommentCollection

Collection of comments assigned to a file

Constructor

new CommentCollection()

Source:

Members

_endReached :bool

True if there are no more page results left to fetch
Type:
  • bool
Source:

_limit :int

Number of comments to fetch per page
Type:
Source:

_objectId :string

Object id
Type:
Source:

_objectType :string

Object type
Type:
Source:

Methods

fetchNext()

Fetch the next set of results
Source:

getSummaryModel() → {OCA.Comments.CommentSummaryModel}

Returns the matching summary model
Source:
Returns:
summary model
Type
OCA.Comments.CommentSummaryModel

initialize()

Initializes the collection
Parameters:
Name Type Attributes Description
options.objectType string <optional>
object type
options.objectId string <optional>
object id
Source:

updateReadMarker(dateopt, optionsopt)

Updates the read marker for this comment thread
Parameters:
Name Type Attributes Description
date Date <optional>
optional date, defaults to now
options Object <optional>
backbone options
Source: