Model Comment

class Nos\Comments\Model_Comment

Extends Nos\Orm\Model.

Methods

Nos\Comments\Model_Comment::getRelatedItem()

Retrieves the instance of the related item model, if it exists.

Returns:Returns the Model instance, if it exists
Nos\Comments\Model_Comment::changeSubscriptionStatus($from, $email, $subscribe)

Changes the user subscription status to new comments on an item.

Parameters:
  • $from (Nos\Orm\Model) – Related item
  • $email (string) – The user’s email address
  • $subscribe (boolean) – false to disable the subscription, true to enabled it