Methods summary
public
string|null
|
#
GetFormAction( )
Get the URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
Get the URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formaction
|
public
MvcCore\Ext\Forms\Field
|
#
SetFormAction( string $formAction )
Set the URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
Set the URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formaction
|
public
string|null
|
#
GetFormEnctype( )
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded
By default, it means all form values will be encoded to
key1=value1&key2=value2... string.
Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data
Data will not be encoded to URL string form, this value is required,
when you are using forms that have a file upload control.
Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain
Spaces will be converted to + symbols, but no other special
characters will be encoded.
Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded By default, it means all form values will be encoded to key1=value1&key2=value2... string. Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data Data will not be encoded to URL string form, this value is required, when you are using forms that have a file upload control. Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain Spaces will be converted to + symbols, but no other special characters will be encoded. Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formenctype
|
public
MvcCore\Ext\Forms\Field
|
#
SetFormEnctype( string $formEnctype )
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded
By default, it means all form values will be encoded to
key1=value1&key2=value2... string.
Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data
Data will not be encoded to URL string form, this value is required,
when you are using forms that have a file upload control.
Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain
Spaces will be converted to + symbols, but no other special
characters will be encoded.
Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded By default, it means all form values will be encoded to key1=value1&key2=value2... string. Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data Data will not be encoded to URL string form, this value is required, when you are using forms that have a file upload control. Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain Spaces will be converted to + symbols, but no other special characters will be encoded. Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formenctype
|
public
string|null
|
#
GetFormMethod( )
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formmethod
|
public
MvcCore\Ext\Forms\Field
|
#
SetFormMethod( string $formMethod )
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values for $formMethod param: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values for $formMethod param: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formmethod
|
public
string|null
|
#
GetFormNoValidate( )
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side. Only TRUE renders the form attribute.
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side. Only TRUE renders the form attribute.
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formnovalidate
|
public
MvcCore\Ext\Forms\Field
|
#
SetFormNoValidate( boolean|null $formNoValidate = TRUE )
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side. Only TRUE renders the form attribute.
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side. Only TRUE renders the form attribute.
Parameters
- $formNoValidate
- Only
TRUE renders the form attribute.
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formnovalidate
|
public
string|null
|
#
GetFormTarget( )
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the
current one. This value is the default if the attribute
is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of
the current one. If there is no parent, this option
behaves the same way as _self .
- _top : Load the response into the top-level browsing context
(i.e. the browsing context that is an ancestor of the
current one, and has no parent). If there is no parent,
this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self .
- _top : Load the response into the top-level browsing context (i.e. the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formtarget
|
public
MvcCore\Ext\Forms\Field
|
#
SetFormTarget( string $formTarget )
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the
current one. This value is the default if the attribute
is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of
the current one. If there is no parent, this option
behaves the same way as _self .
- _top : Load the response into the top-level browsing context
(i.e. the browsing context that is an ancestor of the
current one, and has no parent). If there is no parent,
this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self .
- _top : Load the response into the top-level browsing context (i.e. the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formtarget
|
Properties summary
protected
string|null
|
$formAction
The URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
The URL that processes the data submitted by the input element,
if it is a submit button or image. This attribute overrides the
action attribute of the element's form owner.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formaction
|
|
protected
string|null
|
$formEnctype
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded
By default, it means all form values will be encoded to
key1=value1&key2=value2... string.
Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data
Data will not be encoded to URL string form, this value is required,
when you are using forms that have a file upload control.
Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain
Spaces will be converted to + symbols, but no other special
characters will be encoded.
Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
If the input element is a submit button or image, this attribute
specifies how the form values will be encoded
to send them to the server. Possible values are:
- application/x-www-form-urlencoded By default, it means all form values will be encoded to key1=value1&key2=value2... string. Constant: \MvcCore\Ext\IForm::ENCTYPE_URLENCODED .
- multipart/form-data Data will not be encoded to URL string form, this value is required, when you are using forms that have a file upload control. Constant: \MvcCore\Ext\IForm::ENCTYPE_MULTIPART .
- text/plain Spaces will be converted to + symbols, but no other special characters will be encoded. Constant: \MvcCore\Ext\IForm::ENCTYPE_PLAINTEXT .
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formenctype
|
|
protected
string|null
|
$formMethod
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
If the input element is a submit button or image, this attribute
specifies the HTTP method that the browser uses to submit the form.
Use GET only if form data contains only ASCII characters.
Possible values: 'POST' | 'GET'
You can use constants:
- \MvcCore\Ext\IForm::METHOD_POST
- \MvcCore\Ext\IForm::METHOD_GET
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formmethod
|
|
protected
string|null
|
$formNoValidate
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side.
If the input element is a submit button or image, this Boolean attribute
specifies that the form shouldn't be validated before submission. This
attribute overrides the novalidate attribute of the element's form owner.
It means there will be no validation on client side, but there is always
validation on server side.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formnovalidate
|
|
protected
string|null
|
$formTarget
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the
current one. This value is the default if the attribute
is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of
the current one. If there is no parent, this option
behaves the same way as _self .
- _top : Load the response into the top-level browsing context
(i.e. the browsing context that is an ancestor of the
current one, and has no parent). If there is no parent,
this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
If the input element is a submit button or image, this attribute is
a name or keyword indicating where to display the response that is
received by submitting the form. This is a name of, or keyword for,
a browsing context (e.g. tab, window, or inline frame). This attribute
overrides the target attribute of the elements's form owner.
The following keywords have special meanings:
- _self : Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.
- _blank : Load the response into a new unnamed browsing context.
- _parent : Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self .
- _top : Load the response into the top-level browsing context (i.e. the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self .
- iframename : The response is displayed in a named <iframe> .
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-formtarget
|
|