class EditPage extends Page

Class EditPage

Constants

ACTION_EDIT_CATEGORY

ACTION_EDIT_THREAD

ACTION_EDIT_POST

Properties

ForumController $mod
protected $default_page from  Page

Methods

void
addFormFieldContentAttachment(Form $form, Post $model)

Add a field of type 'form-content-attachments' to the given form, to add or edit content references, e.g. Trendvote.

getPostFormForThread(Post $post, Thread $thread, bool $new = false)

No description

xelos_global_template|string|bool
get_page(null|string $type = null, null|int|string $id = 0)

No description

page_edit_category(int|string|null $id, $new)

No description

page_edit_post(int|string|null $id)

No description

page_edit_thread(int $threadId, int $categoryId)

No description

Details

at line 623
protected void addFormFieldContentAttachment(Form $form, Post $model)

Add a field of type 'form-content-attachments' to the given form, to add or edit content references, e.g. Trendvote.

Parameters

Form $form

The form to which to attach the field.

Post $model

The model that references the content element, either Thread or Post.

Return Value

void

Nothing. The field is added to the passed $form directly.

at line 520
Form getPostFormForThread(Post $post, Thread $thread, bool $new = false)

No description

Parameters

Post $post
Thread $thread
bool $new

Return Value

Form

at line 41
xelos_global_template|string|bool get_page(null|string $type = null, null|int|string $id = 0)

No description

Parameters

null|string $type
null|int|string $id

Return Value

xelos_global_template|string|bool

Exceptions

ContentException
Exception

at line 66
Template page_edit_category(int|string|null $id, $new)

No description

Parameters

int|string|null $id
$new

Return Value

Template

Exceptions

ContentException
Exception

at line 461
Template page_edit_post(int|string|null $id)

No description

Parameters

int|string|null $id

$new is not use in the current context

Return Value

Template

Exceptions

ContentException

at line 204
Template page_edit_thread(int $threadId, int $categoryId)

No description

Parameters

int $threadId

the id of the thread you want to edit

int $categoryId

the category for new threads

Return Value

Template

Exceptions

Exception
ContentException