Date
Date
Date
- Full name: \Gibbon\Forms\Input\Date
- Parent class: \Gibbon\Forms\Input\TextField
Methods
- loadFrom — Overload the base loadFrom method to handle converting date formats.
- setDateFromValue — Set the input value by converting a YYYY-MM-DD format back to localized value.
- getLabelContext — Adds date format to the label description (if not already present)
Inherited from TextField
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
loadFrom
Overload the base loadFrom method to handle converting date formats.
Date::loadFrom( &$data ): self
Returns Self: This method can be chained.
setDateFromValue
Set the input value by converting a YYYY-MM-DD format back to localized value.
Date::setDateFromValue( string $value ): self
Returns Self: This method can be chained.
getLabelContext
Adds date format to the label description (if not already present)
Date::getLabelContext( $label ): string|boolean
Return Value:
string|boolean