Overview

Namespaces

  • MvcCore
    • Ext
      • Auth
        • Virtual
      • Debug
        • Tracy
      • Form
        • Core
        • Validators
      • Request
      • Router
        • Lang
      • View
        • Helpers
  • None

Classes

  • Controller
  • Form
  • User
  • Overview
  • Namespace
  • Class
  • Tree

Class Form

MvcCore\Ext\Form\Core\Base
Extended by MvcCore\Ext\Form\Core\Configuration
Extended by MvcCore\Ext\Form
Extended by MvcCore\Ext\Auth\Virtual\Form

Direct known subclasses

MvcCore\Ext\Auth\SignInForm, MvcCore\Ext\Auth\SignOutForm
Namespace: MvcCore\Ext\Auth\Virtual
Located at ext-auth/src/MvcCore/Ext/Auth/Virtual/Form.php
Methods summary
public MvcCore\Ext\Auth\Virtual\Form|MvcCore\Ext\Form
# Init( )

For sign in form: initialize all form fields, initialize hidden field with sourceUrl for cases when in request params is any source url param. To return there after form is submitted. For sign out form: - initialize sign out button and user into template for any custom template rendering.

For sign in form: initialize all form fields, initialize hidden field with sourceUrl for cases when in request params is any source url param. To return there after form is submitted. For sign out form: - initialize sign out button and user into template for any custom template rendering.

Returns

MvcCore\Ext\Auth\Virtual\Form|MvcCore\Ext\Form

Throws

MvcCore\Ext\Form\Core\Exception

Overrides

MvcCore\Ext\Form::Init()
public array
# Submit( array $rawParams = array() )

For sign in form: - if there is any user with the same password imprint store user in session for next requests, if there is not - wait for three seconds and then go to error page. For sign out form: - sign out submit - if everything is ok, unser user unique name from session for next requests to hanve not authenticated user anymore.

For sign in form: - if there is any user with the same password imprint store user in session for next requests, if there is not - wait for three seconds and then go to error page. For sign out form: - sign out submit - if everything is ok, unser user unique name from session for next requests to hanve not authenticated user anymore.

Parameters

$rawParams

Returns

array

Overrides

MvcCore\Ext\Form::Submit()
protected
# addSuccessAndErrorUrlHiddens( string $successUrl = '', string $errorUrl = '' )

Add success and error url which are used to redirect user to success url or error url after form is submitted.

Add success and error url which are used to redirect user to success url or error url after form is submitted.

Parameters

$successUrl
$errorUrl
Methods inherited from MvcCore\Ext\Form
AddError(), AddField(), AddFields(), ClearSession(), GetCsrf(), GetField(), GetFieldsByClass(), GetFieldsByType(), GetFirstFieldsByClass(), Prepare(), RedirectAfterSubmit(), RemoveField(), Render(), RenderBegin(), RenderContent(), RenderCss(), RenderEnd(), RenderErrors(), RenderJs(), SetUpCsrf(), UnsetEmptyData(), ValidateCsrf(), __construct(), __toString()
Methods inherited from MvcCore\Ext\Form\Core\Configuration
AddCsrfErrorHandler(), AddCss(), AddCssClass(), AddJs(), SetAction(), SetAttributes(), SetCss(), SetCssClass(), SetCssRenderer(), SetDefaults(), SetEnctype(), SetErrorUrl(), SetErrorsRenderMode(), SetFieldsDefaultRenderMode(), SetId(), SetJs(), SetJsRenderer(), SetLang(), SetLocale(), SetMethod(), SetNextStepUrl(), SetRequired(), SetSuccessUrl(), SetTemplatePath(), SetTemplateTypePath(), SetTranslate(), SetTranslator()
Methods inherited from MvcCore\Ext\Form\Core\Base
absolutizeAssetPath(), cleanUpRenderIfNecessary(), completeAssets(), getRequestPath(), prepareRenderIfNecessary(), renderAssetFile(), submitField(), submitFields()
Constants inherited from MvcCore\Ext\Form
VERSION
Constants inherited from MvcCore\Ext\Form\Core\Configuration
CHOOSE_MAX_OPTS, CHOOSE_MAX_OPTS_BUBBLE, CHOOSE_MIN_OPTS, CHOOSE_MIN_OPTS_BUBBLE, CSRF, DATE, DATETIME, DATE_TO_HIGH, DATE_TO_LOW, EMAIL, EMPTY_CONTENT, ENCTYPE_MULTIPART, ENCTYPE_PLAINTEXT, ENCTYPE_URLENCODED, EQUAL, ERROR_RENDER_MODE_AFTER_EACH_CONTROL, ERROR_RENDER_MODE_ALL_TOGETHER, ERROR_RENDER_MODE_BEFORE_EACH_CONTROL, FIELD_RENDER_MODE_LABEL_AROUND, FIELD_RENDER_MODE_NORMAL, FIELD_RENDER_MODE_NO_LABEL, FLOAT, GREATER, HTML_IDS_DELIMITER, IMAGE, INTEGER, INVALID_CHARS, INVALID_FORMAT, LENGTH, LOWER, MAX_FILE_SIZE, MAX_LENGTH, MAX_POST_SIZE, METHOD_CONNECT, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_PATCH, METHOD_POST, METHOD_PUT, METHOD_TRACE, MIME_TYPE, MIN_LENGTH, NOT_EQUAL, NUMBER, PHONE, RANGE, REQUIRED, RESULT_ERRORS, RESULT_NEXT_PAGE, RESULT_SUCCESS, TAX_ID, TIME, TIME_TO_HIGH, TIME_TO_LOW, URL, VALID, VAT_ID, ZIP_CODE
Properties summary
public string $Id

Unique form id.

Unique form id.

# 'authentication'
public string $Method

Form http method.

Form http method.

# \MvcCore\Ext\Form::METHOD_POST
Properties inherited from MvcCore\Ext\Form\Core\Configuration
$Action, $Attributes, $Controller, $Css, $CssClass, $CssRenderer, $Data, $DefaultMessages, $Enctype, $ErrorUrl, $Errors, $ErrorsRenderMode, $Fields, $FieldsDefaultRenderMode, $Js, $JsBaseFile, $JsRenderer, $Lang, $Locale, $NextStepUrl, $Required, $Result, $SuccessUrl, $TemplatePath, $TemplateTypePath, $Translate, $Translator, $View
Properties inherited from MvcCore\Ext\Form\Core\Base
$csrfErrorHandlers, $css, $cssAssetsRootDir, $initialized, $js, $jsAssetsRootDir
MvcCore API documentation generated by ApiGen