C# Класс Core.Forms.Helpers.FormsBuilderWidgetHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

BindWidgetModel() публичный статический Метод

Binds the widget model.
public static BindWidgetModel ( ICoreWidgetInstance instance ) : FormBuilderWidget
instance ICoreWidgetInstance The instance.
Результат Core.Forms.NHibernate.Models.FormBuilderWidget

CloneFormsBuilderWidget() публичный статический Метод

Clones the forms builder widget.
public static CloneFormsBuilderWidget ( ICoreWidgetInstance instance ) : long?
instance ICoreWidgetInstance The instance.
Результат long?

HandleFormData() публичный статический Метод

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.
Результат bool

Remove() публичный статический Метод

Removes the specified core widget instance.
public static Remove ( ICoreWidgetInstance coreWidgetInstance ) : void
coreWidgetInstance ICoreWidgetInstance The core widget instance.
Результат void

SaveFormBuilderWidget() публичный статический Метод

Saves the form builder widget.
public static SaveFormBuilderWidget ( FormBuilderWidgetViewModel model ) : FormBuilderWidgetViewModel
model FormBuilderWidgetViewModel The model.
Результат FormBuilderWidgetViewModel

Validate() публичный статический Метод

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.
Результат void