Class vB_DataManager_Event

Description

Class to do data save/delete operations for EVENTS

  • version: $Revision: 16294 $
  • date: $Date: 2007-02-07 18:34:20 -0600 (Wed, 07 Feb 2007) $

Located in /includes/class_dm_event.php (line 26)

vB_DataManager
   |
   --vB_DataManager_Event
Variable Summary
Method Summary
 vB_DataManager_Event vB_DataManager_Event (vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
 void post_delete ([boolean $doquery = true])
 void post_save_each ([boolean $doquery = true])
 void post_save_once ([boolean $doquery = true])
 boolean pre_save ([boolean $doquery = true])
 void set_userfields (array &$userfields)
 boolean verify_calendarid (integer &$calendarid)
 void verify_event (string &$pagetext, bool 1)
 boolean verify_title (String &$title)
 boolean verify_utc (float &$timezoneoffset)
Variables
array $condition_construct = array('eventid = %1$d', 'eventid') (line 63)

Condition for update query


Redefinition of:
vB_DataManager::$condition_construct
Condition template for update query This is for use with sprintf(). First key is the where clause, further keys are the field names of the data to be used.
string $table = 'event' (line 56)

The main table this class deals with


Redefinition of:
vB_DataManager::$table
Default table to be used in queries
array $validfields = array(
'eventid' => array(TYPE_UINT, REQ_INCR, 'return ($data > 0);'),'userid'=>array(TYPE_UINT,REQ_YES,VF_METHOD),'event'=>array(TYPE_STR,REQ_YES,VF_METHOD),'title'=>array(TYPE_STR,REQ_YES,VF_METHOD),'allowsmilies'=>array(TYPE_UINT,REQ_YES),'recurring'=>array(TYPE_UINT,REQ_YES),'recuroption'=>array(TYPE_STR,REQ_YES),'calendarid'=>array(TYPE_UINT,REQ_YES,VF_METHOD),'customfields'=>array(TYPE_ARRAY_STR,REQ_NO,VF_METHOD,'verify_serialized'),'visible'=>array(TYPE_UINT,REQ_NO),'utc'=>array(TYPE_NUM,REQ_YES,VF_METHOD),'dst'=>array(TYPE_UINT,REQ_NO),'dateline'=>array(TYPE_UNIXTIME,REQ_AUTO),'dateline_from'=>array(TYPE_UINT,REQ_YES),'dateline_to'=>array(TYPE_UINT,REQ_YES),)
(line 33)

Array of recognized and required fields for events


Redefinition of:
vB_DataManager::$validfields
Array of field names that are valid for this data object
bool $verify_datetime = true (line 70)

Condition for verifying date. Set to false if you wish to update data without verifying if the date/time is valid

Inherited Variables

Inherited from vB_DataManager

vB_DataManager::$bitfields
vB_DataManager::$condition
vB_DataManager::$dbobject
vB_DataManager::$errors
vB_DataManager::$error_handler
vB_DataManager::$existing
vB_DataManager::$failure_callback
vB_DataManager::$info
vB_DataManager::$lamda
vB_DataManager::$presave_called
vB_DataManager::$rawfields
vB_DataManager::$registry
vB_DataManager::$setfields
Methods
Constructor vB_DataManager_Event (line 78)

Constructor - checks that the registry object has been passed correctly.

vB_DataManager_Event vB_DataManager_Event (vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
  • vB_Registry &$registry: Instance of the vBulletin data registry object - expected to have the database object as one of its $this->db member.
  • integer $errtype: One of the ERRTYPE_x constants
post_delete (line 571)

Additional data to update after a delete call (such as denormalized values in other tables).

void post_delete ([boolean $doquery = true])
  • boolean $doquery: Do the query?

Redefinition of:
vB_DataManager::post_delete()
Additional data to update after a delete call (such as denormalized values in other tables).
post_save_each (line 534)

Additional data to update after a save call (such as denormalized values in other tables).

In batch updates, is executed for each record updated.

void post_save_each ([boolean $doquery = true])
  • boolean $doquery: Do the query?

Redefinition of:
vB_DataManager::post_save_each()
Additional data to update after a save call (such as denormalized values in other tables).
post_save_once (line 558)

Additional data to update after a save call (such as denormalized values in other tables).

In batch updates, is executed once after all records are updated.

void post_save_once ([boolean $doquery = true])
  • boolean $doquery: Do the query?

Redefinition of:
vB_DataManager::post_save_once()
Additional data to update after a save call (such as denormalized values in other tables).
pre_save (line 251)

Any checks to run immediately before saving. If returning false, the save will not take place.

  • return: True on success; false if an error occurred
boolean pre_save ([boolean $doquery = true])
  • boolean $doquery: Do the query?

Redefinition of:
vB_DataManager::pre_save()
Any checks to run immediately before saving. If returning false, the save will not take place.
set_userfields (line 186)

Selected values for custom fields defined for the calendar that contains this event

void set_userfields (array &$userfields)
  • array &$userfields: Customfield data from $_POST
verify_calendarid (line 92)

Verifies that the specified calendar exists

  • return: Returns true if calendar exists
boolean verify_calendarid (integer &$calendarid)
  • integer &$calendarid: Calendar ID
verify_event (line 170)

Verifies the page text is valid and sets it up for saving.

void verify_event (string &$pagetext, bool 1)
  • bool 1: Whether the text is valid
  • string &$pagetext: Page text
verify_title (line 113)

Verifies that the title is valid

  • return: Returns true if title is valid
boolean verify_title (String &$title)
  • String &$title: Title
verify_utc (line 149)

Verifies that a valid timezoneoffset has been specified

  • return: Returns true if the timezone is valid
boolean verify_utc (float &$timezoneoffset)
  • float &$timezoneoffset: Event timezoneoffset

Inherited Methods

Inherited From vB_DataManager

 vB_DataManager::vB_DataManager()
 vB_DataManager::check_required()
 vB_DataManager::db_delete()
 vB_DataManager::db_insert()
 vB_DataManager::db_insert_ignore()
 vB_DataManager::db_update()
 vB_DataManager::delete()
 vB_DataManager::do_set()
 vB_DataManager::do_unset()
 vB_DataManager::error()
 vB_DataManager::fetch_field()
 vB_DataManager::fetch_insert_sql()
 vB_DataManager::fetch_update_sql()
 vB_DataManager::has_errors()
 vB_DataManager::post_delete()
 vB_DataManager::post_save_each()
 vB_DataManager::post_save_once()
 vB_DataManager::pre_delete()
 vB_DataManager::pre_save()
 vB_DataManager::save()
 vB_DataManager::set()
 vB_DataManager::setr()
 vB_DataManager::setr_info()
 vB_DataManager::set_bitfield()
 vB_DataManager::set_condition()
 vB_DataManager::set_error_handler()
 vB_DataManager::set_existing()
 vB_DataManager::set_failure_callback()
 vB_DataManager::set_info()
 vB_DataManager::strip_empty_bbcode()
 vB_DataManager::strip_empty_bbcode_callback()
 vB_DataManager::verify()
 vB_DataManager::verify_commalist()
 vB_DataManager::verify_date_array()
 vB_DataManager::verify_email()
 vB_DataManager::verify_image_count()
 vB_DataManager::verify_ipaddress()
 vB_DataManager::verify_link()
 vB_DataManager::verify_list()
 vB_DataManager::verify_md5()
 vB_DataManager::verify_nonempty()
 vB_DataManager::verify_nonzero()
 vB_DataManager::verify_pagetext()
 vB_DataManager::verify_serialized()
 vB_DataManager::verify_spacelist()
 vB_DataManager::verify_userid()
 vB_DataManager::verify_username()

Documentation generated on Fri, 09 May 2008 09:01:01 -0500 by phpDocumentor 1.4.1