CoolCMS API

InitialApprovalSetting
in package

FinalYes

Setting key "automatic approval by the admin" of a new record, in one place for adverts (Bazaar, module 5), company profiles (Comcat, module 6) and discussion posts (Discussion, module 8).

Named after the entity like the sibling <entity>.confirmation.required.* keys (EmailConfirmationSetting): advert.approval.auto (modules 5, 6) and message.approval.auto (module 8). '1' means approved at once, '0' and a missing row mean waiting for admin approval. The value is interpreted by InitialApprovalTrait.

Table of Contents

Constants

ADVERT_KEY  : string = 'advert.approval.auto'
MESSAGE_KEY  : string = 'message.approval.auto'

Methods

key()  : string
Returns the approval setting key for the module.

Constants

Methods

key()

Returns the approval setting key for the module.

public static key(int $module) : string
Parameters
$module : int
Tags
throws
InvalidArgumentException

when the module has no content approval

Return values
string
On this page

Search results