- View the diff current.
- View the source.
- Go to Moodle/Hacking.
2: 2010-04-12 (Mon) 12:38:16 admin | 3: 2012-04-12 (Thu) 21:39:18 iseki | ||
---|---|---|---|
Line 6: | Line 6: | ||
- lib/form/dateselector.php | - lib/form/dateselector.php | ||
-- function _createElements() | -- function _createElements() | ||
+ | #br | ||
+ | - 2.x で print_time_selector() は非推奨となった (おまけに 2.2.2+ ではバグっとる) | ||
+ | function print_time_selector($hour, $minute, $currenttime=0, $step=5, $return=false) { | ||
+ | debugging('print_time_selector() has been deprecated. Please change your code to use html_writer.'); | ||
+ | |||
+ | $hourselector = html_writer::select_time('hours', $hour, $currenttime); | ||
+ | $minuteselector = html_writer::select_time('minutes', $minute, $currenttime, $step); | ||
+ | |||
+ | $output = $hourselector . $minuteselector; | ||
+ | |||
+ | if ($return) { | ||
+ | return $output; | ||
+ | } else { | ||
+ | echo $output; | ||
+ | } | ||
+ | } |
- Backup list of Moodle/Hacking
- Backup diff of Moodle/Hacking(No. All)
- 1: 2010-04-12 (Mon) 12:37:16 admin
- 2: 2010-04-12 (Mon) 12:38:16 admin
- 3: 2012-04-12 (Thu) 21:39:18 iseki
- Cur: 2012-04-14 (Sat) 09:00:34 iseki