\Discussion
Synopsis
class Discussion
extends DataObject
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $belongs_many_many = ;
- private static array $default_sort = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static String $send_emails_from;
- // methods
- public void providePermissions()
- public void Link()
- public boolean getLiked()
- public void CommentsForm()
- public Boolean canView()
- public Boolean canCreate()
- public Boolean canLike()
- public void canEdit()
- public void canDelete()
- public Boolean canPin()
- public void onBeforeDelete()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $belongs_many_many
- $casting
- $db
- $default_sort
- $has_one
- $many_many
- $send_emails_from
—
String
Address to send notification emails from - $summary_fields
Methods
public
- CommentsForm() — Customised comments interface for discussions, this allows us to customise commenting explicitly for discussions without altering commenting functionality for the rest of the site.
- Link()
- canCreate() — Can the member create a discussion?
- canDelete()
- canEdit()
- canLike() — Can the member like this post?
- canPin() — Can the member pin this post? By default posts can only be pinned by moderators, managers and admins
- canView() — Can the member view this discussion?
- getLiked() — Determine if this discussion has been liked by the current user
- onBeforeDelete() — Perform database cleanup when deleting
- providePermissions()