PHP Class Nextras\Forms\Controls\DateTimePickerPrototype

Inheritance: extends Nette\Forms\Controls\TextBase
Mostra file Open project: nextras/forms

Protected Properties

Property Type Description
$htmlFormat string
$htmlType string
$parsers Closur\Closure[]

Public Methods

Method Description
addParser ( Closure $parser )
getControl ( ) : Nette\Utils\Html Generates control's HTML element.
getValue ( ) : Nette\Utils\DateTime | null
setValue ( $value )

Protected Methods

Method Description
extractRangeRule ( Rules $rules ) : array Finds minimum and maximum allowed dates.
getDefaultParser ( )

Method Details

addParser() public method

public addParser ( Closure $parser )
$parser Closure

extractRangeRule() protected method

Finds minimum and maximum allowed dates.
protected extractRangeRule ( Rules $rules ) : array
$rules Nette\Forms\Rules
return array 0 => DateTime|null $minDate, 1 => DateTime|null $maxDate

getControl() public method

Generates control's HTML element.
public getControl ( ) : Nette\Utils\Html
return Nette\Utils\Html

getDefaultParser() abstract protected method

abstract protected getDefaultParser ( )

getValue() public method

public getValue ( ) : Nette\Utils\DateTime | null
return Nette\Utils\DateTime | null

setValue() public method

public setValue ( $value )

Property Details

$htmlFormat protected_oe property

protected string $htmlFormat
return string

$htmlType protected_oe property

protected string $htmlType
return string

$parsers protected_oe property

protected Closure[],Closur $parsers
return Closur\Closure[]