[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/user/profile/field/datetime/ -> field.class.php (summary)

This file contains the datetime profile field class.

Copyright: 2010 Mark Nelson <[email protected]>
License: http://www.gnu.org/copyleft/gpl.html GNU Public License
File Size: 113 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

profile_field_datetime:: (3 methods):
  edit_field_add()
  edit_save_data_preprocess()
  display_data()


Class: profile_field_datetime  - X-Ref

Handles displaying and editing the datetime field.

edit_field_add($mform)   X-Ref
Handles editing datetime fields.

param: moodleform $mform

edit_save_data_preprocess($datetime, $datarecord)   X-Ref
If timestamp is in YYYY-MM-DD or YYYY-MM-DD-HH-MM-SS format, then convert it to timestamp.

param: string|int $datetime datetime to be converted.
param: stdClass $datarecord The object that will be used to save the record
return: int timestamp

display_data()   X-Ref
Display the data for this field.




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1