Class humhub\modules\post\widgets\CreateForm

Inheritancehumhub\modules\post\widgets\CreateForm » humhub\modules\content\widgets\WallCreateContentForm » humhub\components\Widget » yii\base\Widget
Available since version0.5

This widget is used include the post form.

It normally should be placed above a steam.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$form string Form implementation humhub\modules\content\widgets\WallCreateContentForm

Public Methods

Hide inherited methods

MethodDescriptionDefined By
create() Creates the given ContentActiveRecord based on given submitted form information. humhub\modules\content\widgets\WallCreateContentForm
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
init() humhub\modules\content\widgets\WallCreateContentForm
process() Process is a wrapper for the run method humhub\components\Widget
renderForm() Returns the custom form implementation. humhub\modules\post\widgets\CreateForm
run() humhub\modules\post\widgets\CreateForm
widget() Creates a widget instance and runs it. humhub\components\Widget


Hide inherited events

EventTypeDescriptionDefined By
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget

Property Details

$submitUrl public property

Form submit route/url (required)

public string $submitUrl '/post/post/post'

Method Details

renderForm() public method

Returns the custom form implementation.

public string renderForm ( )
run() public method

public void run ( )