Public Member Functions | |
checkBlockSequence ($aStart) | |
display () | |
execute () | |
getLocaleFieldNames () | |
initData () | |
readInputData () | |
smartyChooserToTime ($smartyTime, $baseTimestamp=0) | |
TimeBlockForm ($timeBlockId=null) | |
timeToSmartyChooser ($fromTime, $untilTime) | |
Public Attributes | |
$timeBlockId |
$Id$
Definition at line 19 of file TimeBlockForm.inc.php.
TimeBlockForm.display | ( | ) |
Display the form.
Definition at line 106 of file TimeBlockForm.inc.php.
References Request.getSchedConf().
TimeBlockForm.execute | ( | ) |
Save time block.
Definition at line 151 of file TimeBlockForm.inc.php.
References Request.getSchedConf().
TimeBlockForm.getLocaleFieldNames | ( | ) |
Get a list of localized field names for this form
Definition at line 98 of file TimeBlockForm.inc.php.
TimeBlockForm.initData | ( | ) |
Initialize form data from current time block.
Definition at line 121 of file TimeBlockForm.inc.php.
TimeBlockForm.readInputData | ( | ) |
Assign form data to user-submitted data.
Definition at line 141 of file TimeBlockForm.inc.php.
TimeBlockForm.smartyChooserToTime | ( | $ | smartyTime, | |
$ | baseTimestamp = 0 | |||
) |
See above description of timeToSmartyChooser. This performs the opposite conversion by converting from a number that appears as a duration in a Smarty time select widget into an actual duration, i.e. a number of seconds (with an optional parameter for base timestamp).
$smartyTime | int The value of the Smarty time select widget | |
$baseTimestamp | int Optional timestamp to add to the duration |
Definition at line 88 of file TimeBlockForm.inc.php.
TimeBlockForm.TimeBlockForm | ( | $ | timeBlockId = null |
) |
Constructor
timeBlockId | int leave as default for new time block |
Definition at line 27 of file TimeBlockForm.inc.php.
References $timeBlockId, and checkBlockSequence().
TimeBlockForm.timeToSmartyChooser | ( | $ | fromTime, | |
$ | untilTime | |||
) |
Since the Smarty time chooser only operates in terms of actual times of day rather than durations, using this widget for durations requires a conversion. This function converts from a pair of timestamps to a number that will appear in the widget as a duration.
$fromTime | int The beginning time | |
$untilTime | int The end time |
Definition at line 75 of file TimeBlockForm.inc.php.