Back to Joomla project (class list)

Class CalendarField - list of methods

Form Field class for the Joomla Platform.
Provides a pop up date picker linked to a button. Optionally may be filtered to use user's or server's time zone.

Extends

Package: Joomla\CMS\Form\Field
Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Form/Field/CalendarField.php
Project: Joomla

Method Summary

public mixed
(mixed $name)

Method to get certain otherwise inaccessible properties from the form field object.
Parameters
  • string $name The property name for which to get the value.
Returns
  • mixed The property value or null.
Since
  • 3.2
Show source code of this method: __get Source Code

public void
(mixed $name, mixed $value)

Method to set certain otherwise inaccessible properties of the form field object.
Parameters
  • string $name The property name for which to set the value.
  • mixed $value The value of the property.
Returns
  • void
Since
  • 3.2
Show source code of this method: __set Source Code

public bool
(\SimpleXMLElement $element, mixed $value, mixed $group = null)

Method to attach a Form object to the field.
Parameters
  • \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
  • mixed $value The form field value to validate.
  • string $group The field name group control value. This acts as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".
Returns
  • bool True on success.
Since
  • 3.2
-
  • \Joomla\CMS\Form\FormField::setup()
Show source code of this method: setup Source Code

protected string
()

Method to get the field input markup.
Returns
  • string The field input markup.
Since
  • 1.7.0
Show source code of this method: getInput Source Code

protected array
()

Method to get the data to be passed to the layout for rendering.
Returns
  • array
Since
  • 3.7.0
Show source code of this method: getLayoutData Source Code

public mixed
(mixed $value, mixed $group = null, \Joomla\Registry\Registry $input = null)

Method to filter a field value.
Parameters
  • mixed $value The optional value to use as the default for the field.
  • string $group The optional dot-separated form group path on which to find the field.
  • \Joomla\Registry\Registry $input An optional Registry object with the entire data set to filter against the entire form.
Returns
  • mixed The filtered value.
Since
  • 4.0.0
Show source code of this method: filter Source Code

Properties Summary

protected string
$type
The form field type.
Since
  • 1.7.0
protected int
$maxlength
The allowable maxlength of calendar field.
Since
  • 3.2
protected string
$format
The format of date and time.
Since
  • 3.2
protected string
$filterFormat
The format will be used to filter submitted date and time.
Since
  • 4.0.1
protected int
$filter
The filter.
Since
  • 3.2
protected int
$minyear
The minimum year number to subtract/add from the current year
Since
  • 3.7.0
protected int
$maxyear
The maximum year number to subtract/add from the current year
Since
  • 3.7.0
protected string
$layout
Name of the layout being used to render the field
Since
  • 3.7.0
protected string
$parentclass
The parent class of the field
Since
  • 4.0.0

Tags Summary

Since
1.7.0