CoolCMS API

CommentSide : string
in package

Side of the conversation in work item comments: who reads, respectively who wrote.

Work item comments are communication between company and client. The unread badge is always computed for the other side: what the client wrote waits for the admin and vice versa.

NOTE: Company is one subject, so a comment read by one admin counts as read for the whole company. It is a side of the conversation, not a user.

Table of Contents

Cases

Client  = 'client'
Client on the front end; reads admin comments.
Company  = 'company'
Admin (company side); reads client comments.

Methods

isClient()  : bool
Returns whether this side writes the comments stored with `by_client = 1`.
opposite()  : self
Returns the other side, whose comments are addressed to this side.

Cases

Company

Admin (company side); reads client comments.

Client

Client on the front end; reads admin comments.

Methods

isClient()

Returns whether this side writes the comments stored with `by_client = 1`.

public isClient() : bool
Return values
bool

opposite()

Returns the other side, whose comments are addressed to this side.

public opposite() : self
Return values
self
On this page

Search results