Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • DateInput
  • Overview
  • Namespace
  • Class
  • Tree

Class DateInput

Nette\Object
Extended by Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Vodacek\Forms\Controls\DateInput
Namespace: Vodacek\Forms\Controls
Copyright: 2011, Ondřej Vodáček
License: BSD License
Author: Ondřej Vodáček <ondrej.vodacek@gmail.com>
Located at vendor/others/Vodacek/Forms/Controls/DateInput.php
Methods summary
public static
# register( )
public
# __construct( string $label = null, string $type = Vodacek\Forms\Controls\DateInput::TYPE_DATETIME_LOCAL )

Parameters

$label
string
$type
string

Throws

InvalidArgumentException

Overrides

Nette\Forms\Controls\BaseControl::__construct()
public Vodacek\Forms\Controls\DateInput
# setValue( mixed $value = null )

Sets control's value.

Sets control's value.

Parameters

$value
mixed

Returns

Vodacek\Forms\Controls\DateInput

Overrides

Nette\Forms\Controls\BaseControl::setValue()
public Nette\Utils\Html
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

Nette\Utils\Html

Overrides

Nette\Forms\Controls\BaseControl::getControl()
public Vodacek\Forms\Controls\DateInput
# addRule( mixed $operation, string $message = null, mixed $arg = null )

Adds a validation rule.

Adds a validation rule.

Parameters

$operation
mixed
rule type
$message
string
message to display for invalid data
$arg
mixed
optional rule arguments

Returns

Vodacek\Forms\Controls\DateInput

Overrides

Nette\Forms\Controls\BaseControl::addRule()
public static boolean
# validateFilled( Nette\Forms\IControl $control )

Filled validator: is control filled?

Filled validator: is control filled?

Returns

boolean

Overrides

Nette\Forms\Controls\BaseControl::validateFilled()
public static boolean
# validateDateInputValid( Nette\Forms\IControl $control )

Valid validator: is control valid?

Valid validator: is control valid?

Parameters

$control
Nette\Forms\IControl

Returns

boolean
public static boolean
# validateValid( Nette\Forms\IControl $control )

Valid validator: is control valid?

Valid validator: is control valid?

Returns

boolean

Overrides

Nette\Forms\Controls\BaseControl::validateValid()
public static boolean
# validateDateInputRange( Vodacek\Forms\Controls\DateInput $control )

Parameters

$control
Vodacek\Forms\Controls\DateInput
$control

Returns

boolean
Methods inherited from Nette\Forms\Controls\BaseControl
addCondition(), addConditionOn(), addError(), attached(), cleanErrors(), exportRules(), getControlPrototype(), getError(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getHttpData(), getLabel(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isFilled(), isOmitted(), isRequired(), loadHttpData(), setAttribute(), setDefaultValue(), setDisabled(), setHtmlId(), setOmitted(), setOption(), setRequired(), setTranslator(), translate(), validate(), validateBlank(), validateEqual(), validateLength(), validateMaxLength(), validateMinLength(), validateNotEqual(), validateRange()
Methods inherited from Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from Nette\ComponentModel\IComponent
setParent()
Constants summary
string TYPE_DATETIME 'datetime'
#
string TYPE_DATETIME_LOCAL 'datetime-local'
#
string TYPE_DATE 'date'
#
string TYPE_MONTH 'month'
#
string TYPE_TIME 'time'
#
string TYPE_WEEK 'week'
#
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
protected string $type
#
protected array $range array('min' => null, 'max' => null)
#
protected mixed $submitedValue null
#
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $omitted, $options, $required, $rules, $translator, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Magic properties inherited from Nette\Object
$reflection
API documentation generated by ApiGen 2.8.0