CoolCMS API

MessageFormTrait

Tags
requires

MessageGuestEditTrait — guest edit through the "Manage post" link

Table of Contents

Properties

$messageFormFactory  : MessageFormFactory

Methods

actionAdd()  : void
actionEdit()  : void
Edit of a post: the logged-in author, or a guest author with an edit session opened by the "Manage post" link from the insert e-mail ({@see MessageGuestEditTrait}).
renderAdd()  : void
renderEdit()  : void
createComponentMessageForm()  : MessageForm
isMessageEditor()  : bool
The logged-in author edits their post; a guest post only with a valid edit session from the link.

Properties

Methods

actionAdd()

public actionAdd(mixed $slug) : void
Parameters
$slug : mixed

actionEdit()

Edit of a post: the logged-in author, or a guest author with an edit session opened by the "Manage post" link from the insert e-mail ({@see MessageGuestEditTrait}).

public actionEdit(mixed $slug[, int|null $id = null ]) : void
Parameters
$slug : mixed
$id : int|null = null

renderAdd()

public renderAdd(string|int $slug) : void
Parameters
$slug : string|int

renderEdit()

public renderEdit(mixed $slug[, int|null $id = null ]) : void
Parameters
$slug : mixed
$id : int|null = null

isMessageEditor()

The logged-in author edits their post; a guest post only with a valid edit session from the link.

private isMessageEditor(Message $message) : bool
Parameters
$message : Message
Return values
bool
On this page

Search results