C# Class Core.Forms.Helpers.FormsBuilderWidgetHelper

显示文件 Open project: coreframework/Core-Framework

Public Methods

Method Description
BindWidgetModel ( ICoreWidgetInstance instance ) : FormBuilderWidget

Binds the widget model.

CloneFormsBuilderWidget ( ICoreWidgetInstance instance ) : long?

Clones the forms builder widget.

HandleFormData ( FormBuilderWidget model, System.Web.Mvc.FormCollection collection, ICorePrincipal user ) : bool

Handles the form data.

Remove ( ICoreWidgetInstance coreWidgetInstance ) : void

Removes the specified core widget instance.

SaveFormBuilderWidget ( FormBuilderWidgetViewModel model ) : FormBuilderWidgetViewModel

Saves the form builder widget.

Validate ( FormBuilderWidget model, System.Web.Mvc.FormCollection collection, ModelStateDictionary modelState ) : void

Validates the form model.

Private Methods

Method Description
GetRadioButtonValue ( String values, String elementName, String selectedElementName ) : String

Gets the radio button value.

ValidateCaptcha ( System.Web.Mvc.FormCollection collection, ModelStateDictionary modelState, String captchaKey, String captchaValue ) : void

Validates the captcha.

Method Details

BindWidgetModel() public static method

Binds the widget model.
public static BindWidgetModel ( ICoreWidgetInstance instance ) : FormBuilderWidget
instance ICoreWidgetInstance The instance.
return Core.Forms.NHibernate.Models.FormBuilderWidget

CloneFormsBuilderWidget() public static method

Clones the forms builder widget.
public static CloneFormsBuilderWidget ( ICoreWidgetInstance instance ) : long?
instance ICoreWidgetInstance The instance.
return long?

HandleFormData() public static method

Handles the form data.
public static HandleFormData ( FormBuilderWidget model, System.Web.Mvc.FormCollection collection, ICorePrincipal user ) : bool
model Core.Forms.NHibernate.Models.FormBuilderWidget The model.
collection System.Web.Mvc.FormCollection The collection.
user ICorePrincipal The user.
return bool

Remove() public static method

Removes the specified core widget instance.
public static Remove ( ICoreWidgetInstance coreWidgetInstance ) : void
coreWidgetInstance ICoreWidgetInstance The core widget instance.
return void

SaveFormBuilderWidget() public static method

Saves the form builder widget.
public static SaveFormBuilderWidget ( FormBuilderWidgetViewModel model ) : FormBuilderWidgetViewModel
model FormBuilderWidgetViewModel The model.
return FormBuilderWidgetViewModel

Validate() public static method

Validates the form model.
public static Validate ( FormBuilderWidget model, System.Web.Mvc.FormCollection collection, ModelStateDictionary modelState ) : void
model Core.Forms.NHibernate.Models.FormBuilderWidget The model.
collection System.Web.Mvc.FormCollection The collection.
modelState ModelStateDictionary State of the model.
return void