Overview

Namespaces

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

Classes

  • Button
  • Checkbox
  • CheckboxGroup
  • CountrySelect
  • Date
  • DateTime
  • Email
  • Hidden
  • NoType
  • Number
  • Password
  • RadioGroup
  • Range
  • ResetButton
  • ResetInput
  • Select
  • SubmitButton
  • SubmitInput
  • Text
  • Textarea
  • Time
  • Overview
  • Namespace
  • Class
  • Tree

Class Date

MvcCore\Ext\Form\Core\Field
Extended by MvcCore\Ext\Form\Date

Direct known subclasses

MvcCore\Ext\Form\DateTime, MvcCore\Ext\Form\Time
Namespace: MvcCore\Ext\Form
Located at ext-form/src/MvcCore/Ext/Form/Date.php
Methods summary
public MvcCore\Ext\Form\Date
# SetValue( DateTime|string $value )

Set datetime value and hold it formated as string by: http://php.net/manual/en/datetime.createfromformat.php

Set datetime value and hold it formated as string by: http://php.net/manual/en/datetime.createfromformat.php

Parameters

$value
$format

Returns

MvcCore\Ext\Form\Date

Overrides

MvcCore\Ext\Form\Core\Field::SetValue()
public MvcCore\Ext\Form\Date
# SetFormat( string $format )

Set valid date format for: http://php.net/manual/en/datetime.createfromformat.php

Set valid date format for: http://php.net/manual/en/datetime.createfromformat.php

Parameters

$format

Returns

MvcCore\Ext\Form\Date
public MvcCore\Ext\Form\Date
# SetMin( string $min )

Set date/time/datetime minimum, examples: - date (with format 'Y-m-d') : '2015-11-25' - time (with format 'H:i') : '11:30' - datetime (with format 'Y-m-d H:i') : '2015-11-25 11:30'

Set date/time/datetime minimum, examples: - date (with format 'Y-m-d') : '2015-11-25' - time (with format 'H:i') : '11:30' - datetime (with format 'Y-m-d H:i') : '2015-11-25 11:30'

Parameters

$min

Returns

MvcCore\Ext\Form\Date
public MvcCore\Ext\Form\Date
# SetMax( string $max )

Set date/time/datetime minimum, examples: - date (with format 'Y-m-d') : '2017-01-13' - time (with format 'H:i') : '18:25' - datetime (with format 'Y-m-d H:i') : '2017-01-13 18:25'

Set date/time/datetime minimum, examples: - date (with format 'Y-m-d') : '2017-01-13' - time (with format 'H:i') : '18:25' - datetime (with format 'Y-m-d H:i') : '2017-01-13 18:25'

Parameters

$max
$min

Returns

MvcCore\Ext\Form\Date
public MvcCore\Ext\Form\Date
# SetStep( integer $step )

Set step in seconds.

Set step in seconds.

Parameters

$step

Returns

MvcCore\Ext\Form\Date

See

http://www.wufoo.com/html5/types/4-date.html
public MvcCore\Ext\Form\Date
# SetWrapper( string $wrapper )

Set html code wrapper, wrapper has to contain replacement in form '{control}'. Around this substring you can wrap any html code you want.

Set html code wrapper, wrapper has to contain replacement in form '{control}'. Around this substring you can wrap any html code you want.

Parameters

$wrapper

Returns

MvcCore\Ext\Form\Date
public string
# RenderControl( )

Render control element, without label or possible error messages, only the element.

Render control element, without label or possible error messages, only the element.

Returns

string

Overrides

MvcCore\Ext\Form\Core\Field::RenderControl()
Methods inherited from MvcCore\Ext\Form\Core\Field
AddControlAttr(), AddCssClass(), AddError(), AddLabelAttr(), AddValidators(), GetValue(), OnAdded(), Render(), RenderControlInsideLabel(), RenderErrors(), RenderLabel(), RenderLabelAndControl(), RenderNaturally(), RenderTemplate(), SetControlAttrs(), SetCss(), SetCssClasses(), SetDisabled(), SetJs(), SetJsClass(), SetLabel(), SetLabelAttrs(), SetLabelSide(), SetName(), SetReadonly(), SetRenderMode(), SetRequired(), SetTemplatePath(), SetTranslate(), SetType(), SetUp(), SetValidators(), __construct(), __set(), renderAttrsWithFieldVars(), renderControlAttrsWithFieldVars(), renderLabelAttrsWithFieldVars()
Properties summary
public string $Type

date/time/datetime field, coud be defined in extended control classes laso as week, year or day

date/time/datetime field, coud be defined in extended control classes laso as week, year or day

See

http://www.html5tutorial.info/html5-date.php
# 'date'
public string $Format

Valid Datetime format to create PHP Datetime by DateTime::createFromFormat($field->Format);.

Valid Datetime format to create PHP Datetime by DateTime::createFromFormat($field->Format);.

See

http://php.net/manual/en/datetime.createfromformat.php

Example

'Y-m-d', 'Y/m/d' ...
# 'Y-m-d'
public string $Min

Minimum date/time/datetime for current control, by configured format asigned as string value.

Minimum date/time/datetime for current control, by configured format asigned as string value.

# null
public string $Max

Maximum date/time/datetime for current control, by configured format asigned as string value.

Maximum date/time/datetime for current control, by configured format asigned as string value.

# null
public string $Step

HTML5 input:date, input:time and input:datetime control step attribute in seconds.

HTML5 input:date, input:time and input:datetime control step attribute in seconds.

See

input:date
# null
public string $Wrapper

Any html code containing substring '{control}' to wrap any code around control itself.

Any html code containing substring '{control}' to wrap any code around control itself.

# '{control}'
public string[]|Closure[] $Validators

Validators used for submitted value to check format, min, max and dangerous characters

Validators used for submitted value to check format, min, max and dangerous characters

# array('Date')
Properties inherited from MvcCore\Ext\Form\Core\Field
$ControlAttrs, $Css, $CssClasses, $Disabled, $Errors, $Form, $Id, $Js, $JsClass, $Label, $LabelAttrs, $LabelSide, $Name, $Readonly, $RenderMode, $Required, $TemplatePath, $Templates, $Translate, $Value, $View, $declaredProtectedProperties
MvcCore API documentation generated by ApiGen