class ContentEdit

Controller for editing content objects.

Methods

__construct(object $model, object $viewModel)

Constructor.

array
cancel()

Cancel the add/edit content action.

array
display()

Display the add content form.

array
edit()

Display the edit content form.

array
save()

Save the new/edited content object.

Details

at line 42
__construct(object $model, object $viewModel)

Constructor.

Parameters

object $model Instance of a model class.
object $viewModel Instance of a viewModel class.

at line 55
array cancel()

Cancel the add/edit content action.

Return Value

array Empty array (the output of this action is not cached).

at line 67
array display()

Display the add content form.

Return Value

array Empty array (the output of this action is not cached).

at line 79
array edit()

Display the edit content form.

Return Value

array Empty array (the output of this action is not cached).

at line 91
array save()

Save the new/edited content object.

Return Value

array Empty array (the output of this action is not cached).