TimeBlockForm Class Reference

List of all members.

Public Member Functions

 checkBlockSequence ($aStart)
 display ()
 execute ()
 getLocaleFieldNames ()
 initData ()
 readInputData ()
 smartyChooserToTime ($smartyTime, $baseTimestamp=0)
 TimeBlockForm ($timeBlockId=null)
 timeToSmartyChooser ($fromTime, $untilTime)

Public Attributes

 $timeBlockId

Detailed Description

Form for conference manager to create/edit time blocks for scheduler.

$Id$

Definition at line 19 of file TimeBlockForm.inc.php.


Member Function Documentation

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

Returns:
array

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).

Parameters:
$smartyTime int The value of the Smarty time select widget
$baseTimestamp int Optional timestamp to add to the duration
Returns:
int

Definition at line 88 of file TimeBlockForm.inc.php.

TimeBlockForm.TimeBlockForm ( timeBlockId = null  ) 

Constructor

Parameters:
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.

Parameters:
$fromTime int The beginning time
$untilTime int The end time
Returns:
int

Definition at line 75 of file TimeBlockForm.inc.php.


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7