\ForumRole
ForumRole
This decorator adds the needed fields and methods to the object.
Synopsis
class ForumRole
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $belongs_many_many = ;
- private static array $defaults = ;
- private static array $searchable_fields = ;
- private static array $indexes = ;
- private static array $field_labels = ;
- // methods
- public void augmentSQL()
- public void augmentDatabase()
- public void onBeforeDelete()
- public void ForumRank()
- public void FirstNamePublic()
- public void SurnamePublic()
- public void OccupationPublic()
- public void CompanyPublic()
- public void CityPublic()
- public void CountryPublic()
- public void EmailPublic()
- public void FullCountry()
- public void NumPosts()
- public boolean isModeratingForum()
- public void Link()
- public FieldList getForumFields()
- public Validator getForumValidator()
- public void updateCMSFields()
- public void IsSuspended()
- public void IsBanned()
- public void IsGhost()
- public true canEdit()
- public void Nickname()
- public String getFormattedAvatar()
- public String ForumSuspensionMessage()
Hierarchy
Extends
- DataExtension
Members
private
- $belongs_many_many
- $db
- $defaults
- $field_labels
- $has_many
- $has_one
- $indexes
- $searchable_fields
Methods
public
- CityPublic()
- CompanyPublic()
- CountryPublic()
- EmailPublic()
- FirstNamePublic()
- ForumRank()
- ForumSuspensionMessage() — Conditionally includes admin email address (hence we can't simply generate this message in templates). We don't need to spam protect the email address as the note only shows to logged-in users.
- FullCountry() — Run the Country code through a converter to get the proper Country Name
- IsBanned()
- IsGhost()
- IsSuspended()
- Link()
- Nickname() — Used in preference to the Nickname field on templates
- NumPosts()
- OccupationPublic()
- SurnamePublic()
- augmentDatabase() — Update the database schema as required by this extension
- augmentSQL() — Edit the given query object to support queries for this extension
- canEdit() — Can the current user edit the given member?
- getFormattedAvatar() — Return the url of the avatar or gravatar of the selected user.
- getForumFields() — Get the fields needed by the forum module
- getForumValidator() — Get the fields needed by the forum module
- isModeratingForum() — Checks if the current user is a moderator of the given forum by looking in the moderator ID list.
- onBeforeDelete()
- updateCMSFields()