class ModerateAction

Properties

ForumController $mod

Methods

bool|string
findParentsBySearchAction()

Tries to find writable parent elements of search query request from autocomplete

array
getModeratableElements(string $type)

Skims all ids of given post ids, where the current user has no can moderate rights on parent thread(s).

array
getWritableParentsBySearchterm(string $searchQuery, string $type, array $excludeIds = [], int $limit = 10)

Returns writable parent elements for $type(post||thread) filtered by $searchQuery and exluding $excludeIds

Details

at line 273
bool|string findParentsBySearchAction()

Tries to find writable parent elements of search query request from autocomplete

Return Value

bool|string

Exceptions

ContentException

at line 29
array getModeratableElements(string $type)

Skims all ids of given post ids, where the current user has no can moderate rights on parent thread(s).

Parameters

string $type

Return Value

array

All post ids which can be moderated

Exceptions

InvalidArgumentException

at line 80
array getWritableParentsBySearchterm(string $searchQuery, string $type, array $excludeIds = [], int $limit = 10)

Returns writable parent elements for $type(post||thread) filtered by $searchQuery and exluding $excludeIds

Parameters

string $searchQuery
string $type
array $excludeIds
int $limit

Return Value

array

The format: [ '[MODEL-ID]' => '[LABEL]', '[MODEL-ID]' => '[LABEL]', [...] ]