Home
in package
implements
ActionInterface
uses
ActionTrait
This is the home page of the moderation center.
Table of Contents
Interfaces
- ActionInterface
- Interface for all action classes.
Properties
Methods
- call() : void
- Convenience method to load() and execute() an instance of this class.
- canBeLogged() : bool
- Determines whether this action can be logged in the online log.
- canShowDebuggingInfo() : bool
- Determines whether debugging info should be shown.
- canShowInMaintenanceMode() : bool
- Determines whether this action allows access in maintenance mode.
- execute() : void
- Do the job.
- getOutputType() : OutputTypeInterface
- Gets the output type for this action.
- isAgreementAction() : bool
- Determines whether this action can be accessed without accepting the registration agreement and privacy policy.
- isRestrictedGuestAccessAllowed() : bool
- Determines whether this action allows access if guest access is restricted.
- isSimpleAction() : bool
- Determines whether this is a simple action.
- load() : static
- Static wrapper for constructor.
- __construct() : mixed
- Constructor. Protected to force instantiation via self::load().
- groupRequests() : void
- Show a list of all the group requests they can see.
- integrateModBlocks() : void
- Provides a home for the deprecated integrate_mod_centre_blocks hook.
- notes() : void
- Show an area for the moderator to type into.
- reportedMembers() : void
- Show a list of the most recent reported members.
- reportedPosts() : void
- Show a list of the most recent reported posts.
- watchedUsers() : void
- Show a list of the most active watched users.
Properties
$blocks
public
array<string|int, mixed>
$blocks
= ['g' => ['func' => 'groupRequests', 'sub_template' => 'group_requests_block', 'context_var' => 'group_requests', 'permissions' => ['can_moderate_groups']], 'r' => ['func' => 'reportedPosts', 'sub_template' => 'reported_posts_block', 'context_var' => 'reported_posts', 'permissions' => ['can_moderate_boards']], 'w' => [
'func' => 'watchedUsers',
'sub_template' => 'watched_users',
'context_var' => 'watched_users',
// There are two possible reasons to grant someone access to this.
'permissions' => ['can_moderate_boards', 'can_moderate_users'],
], 'rm' => ['func' => 'reportedMembers', 'sub_template' => 'reported_users_block', 'context_var' => 'reported_users', 'permissions' => ['can_moderate_users']]]
Blocks of data to show on the moderation center home page.
$obj
protected
static static
$obj
An instance of this class. This is used by the load() method to prevent multiple instantiations.
Methods
call()
Convenience method to load() and execute() an instance of this class.
public
static call() : void
canBeLogged()
Determines whether this action can be logged in the online log.
public
canBeLogged() : bool
Return values
boolcanShowDebuggingInfo()
Determines whether debugging info should be shown.
public
canShowDebuggingInfo() : bool
Return values
boolcanShowInMaintenanceMode()
Determines whether this action allows access in maintenance mode.
public
canShowInMaintenanceMode() : bool
Return values
bool —True if access is allowed, false otherwise.
execute()
Do the job.
public
execute() : void
getOutputType()
Gets the output type for this action.
public
getOutputType() : OutputTypeInterface
Return values
OutputTypeInterfaceisAgreementAction()
Determines whether this action can be accessed without accepting the registration agreement and privacy policy.
public
isAgreementAction() : bool
Return values
boolisRestrictedGuestAccessAllowed()
Determines whether this action allows access if guest access is restricted.
public
isRestrictedGuestAccessAllowed() : bool
Return values
bool —True if access is allowed, false otherwise.
isSimpleAction()
Determines whether this is a simple action.
public
isSimpleAction() : bool
Return values
boolload()
Static wrapper for constructor.
public
static load() : static
Return values
static —An instance of this class.
__construct()
Constructor. Protected to force instantiation via self::load().
protected
__construct() : mixed
groupRequests()
Show a list of all the group requests they can see.
protected
groupRequests() : void
integrateModBlocks()
Provides a home for the deprecated integrate_mod_centre_blocks hook.
protected
static integrateModBlocks() : void
MOD AUTHORS: Please use the integrate_moderation_home_blocks instead.
notes()
Show an area for the moderator to type into.
protected
notes() : void
reportedMembers()
Show a list of the most recent reported members.
protected
reportedMembers() : void
reportedPosts()
Show a list of the most recent reported posts.
protected
reportedPosts() : void
watchedUsers()
Show a list of the most active watched users.
protected
watchedUsers() : void