Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Calendar_Event_Edit_Fns Class Reference
Inheritance diagram for Calendar_Event_Edit_Fns:
Asset_Edit_Fns MySource_Object Calendar_Event_Cancellation_Edit_Fns Calendar_Event_Modification_Edit_Fns Calendar_Event_Recurring_Edit_Fns Calendar_Event_Single_Edit_Fns

Public Member Functions

 Calendar_Event_Edit_Fns ()
 
 paintStartEndChooser (&$asset, $prefix, $attributes=Array())
 
 _validateDateTimeFields ($prefix, $component)
 
 processStartEndChooser (&$asset, &$o, $prefix)
 
 getStartEndChooserResult ($prefix)
 
 printDateChooser ($prefix, $timestamp=0, $attributes=Array())
 
 printTimeChooser ($prefix, $timestamp, $attributes=Array(), $checkbox_attributes=Array())
 
- Public Member Functions inherited from Asset_Edit_Fns
 Asset_Edit_Fns ()
 
 paintPaths (&$asset, &$o, $prefix)
 
 paintEditRemapURLs (&$asset, &$o, $prefix)
 
 processPaths (&$asset, &$o, $prefix)
 
 processEditRemapURLs (&$asset, &$o, $prefix)
 
 paintURLs (&$asset, &$o, $prefix)
 
 paintAddRemapURLs (&$asset, &$o, $prefix)
 
 processAddRemapURLs (&$asset, &$o, $prefix)
 
 isWorkflowComplete (&$asset)
 
 paintNoticeLinkedAsset (&$asset, $link_value, $type_codes=Array(), $field_name='', $multiple=FALSE)
 
 processNoticeLinkedAsset (&$asset, $link_value, $field_name='', $multiple=FALSE)
 
 isSearchInstalled (&$asset, $prefix)
 
 isBeingCreated (&$asset)
 
 isNotBeingCreated (&$asset)
 
 paintAutomaticRemapSetting (&$asset, &$o, $prefix)
 
 paintCreateLink (&$asset, &$o, $prefix)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Additional Inherited Members

- Data Fields inherited from Asset_Edit_Fns
 $static_screens
 

Detailed Description

Definition at line 31 of file calendar_event_edit_fns.inc.

Member Function Documentation

_validateDateTimeFields (   $prefix,
  $component 
)

Check all the date/time components are present and correct, and convert to 24hr format

Parameters
string$prefixThe form field prefix
string$componentWhich component of the start/end we are checking
Returns
boolean private

Definition at line 139 of file calendar_event_edit_fns.inc.

Constructor

Definition at line 39 of file calendar_event_edit_fns.inc.

getStartEndChooserResult (   $prefix)

Get the result of a start/end chooser fieldset

It returns FALSE on failure, array('start'=>iso, 'end'=>iso) on success

Parameters
string$prefixthe prefix to use for form field names
Returns
mixed boolean|array public

Definition at line 224 of file calendar_event_edit_fns.inc.

paintStartEndChooser ( $asset,
  $prefix,
  $attributes = Array() 
)

Paint a form for entering the start/end date/time for an event, including javascript validation functions

Parameters
object&$assetthe event to print the form for
string$prefixthe prefix to use for form field names
string$attributesextra attributes to print for each input field name=>val
Returns
boolean public

Definition at line 57 of file calendar_event_edit_fns.inc.

printDateChooser (   $prefix,
  $timestamp = 0,
  $attributes = Array() 
)

Print form fields for choosing a date

Parameters
string$prefixthe prefix to use on field names
int$timestampa default value, or 0 to use today's date, or FALSE to disable the field
array$attributesarray of attributes for the input tags, eg 'onclick'=>'alert("hi")'
Returns
boolean public

Definition at line 305 of file calendar_event_edit_fns.inc.

printTimeChooser (   $prefix,
  $timestamp,
  $attributes = Array(),
  $checkbox_attributes = Array() 
)

Print form fields for choosing a date, including a checkbox to enable or disable the time fields

Parameters
string$prefixthe prefix to use on field names
int$timestampa default value, or 0 to use today's date, or FALSE to disable the field
array$attributesAttributes to put in the field tags, eg 'onclick'=>'alert()'
array$checkbox_attributesAttributes to put in the field tags, eg 'onclick'=>'alert()' for checkbox
Returns
boolean public

Definition at line 349 of file calendar_event_edit_fns.inc.

processStartEndChooser ( $asset,
$o,
  $prefix 
)

Process the start/end date/time entry form fields for an event

It returns TRUE if the update was successful

Parameters
object&$assetthe event to process the form for
object&$othe outputter class (not used here)
string$prefixthe prefix to use for form field names
Returns
boolean public

Definition at line 197 of file calendar_event_edit_fns.inc.


The documentation for this class was generated from the following file: