[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/form/ -> datetimeselector.php (summary)

Group of date and time input element Contains class for a group of elements used to input a date and time.

Copyright: 2006 Jamie Pratt <me@jamiep.org>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 325 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MoodleQuickForm_date_time_selector:: (7 methods):
  __construct()
  MoodleQuickForm_date_time_selector()
  _createElements()
  onQuickFormEvent()
  toHtml()
  accept()
  exportValue()


Class: MoodleQuickForm_date_time_selector  - X-Ref

Element used to input a date and time.

Class for a group of elements used to input a date and time.

__construct($elementName = null, $elementLabel = null, $options = array()   X-Ref
Class constructor

param: string $elementName Element's name
param: mixed $elementLabel Label(s) for an element
param: array $options Options to control the element's display
param: mixed $attributes Either a typical HTML attribute string or an associative array

MoodleQuickForm_date_time_selector($elementName = null, $elementLabel = null, $options = array()   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


_createElements()   X-Ref
This will create date group element constisting of day, month and year.


onQuickFormEvent($event, $arg, &$caller)   X-Ref
Called by HTML_QuickForm whenever form event is made on this element

param: string $event Name of event
param: mixed $arg event arguments
param: object $caller calling object
return: bool

toHtml()   X-Ref
Returns HTML for advchecbox form element.

return: string

accept(&$renderer, $required = false, $error = null)   X-Ref
Accepts a renderer

param: HTML_QuickForm_Renderer $renderer An HTML_QuickForm_Renderer object
param: bool $required Whether a group is required
param: string $error An error message associated with a group

exportValue(&$submitValues, $assoc = false)   X-Ref
Output a timestamp. Give it the name of the group.

param: array $submitValues values submitted.
param: bool $assoc specifies if returned array is associative
return: array



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1