vB_DataManager_ForumClass to do data save/delete operations for FORUMS
Example usage (updates forum with forumid = 12):
$f = new vB_DataManager_Forum(); $f->set_condition('forumid = 12'); $f->set_info('forumid', 12); $f->set('parentid', 5); $f->set('title', 'Forum with changed parent'); $f->save();
Located in /includes/class_dm_forum.php (line 37)
vB_DataManager | --vB_DataManager_Forum
vB_DataManager_Forum
vB_DataManager_Forum
(vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
array
$bitfields
= array('options' => 'bf_misc_forumoptions') (line 82)
Array of field names that are bitfields, together with the name of the variable in the registry with the definitions.
For example: var $bitfields = array('options' => 'bf_misc_useroptions', 'permissions' => 'bf_misc_moderatorpermissions')
array
$condition_construct
= array('forumid = %1$d', 'forumid') (line 110)
Condition template for update query
array
$forum
= array() (line 96)
Array to store stuff to save to forum table
string
$table
= 'forum' (line 89)
The main table this class deals with
array
$tachyforumcounter
= array() (line 103)
Array to store stuff to save to tachyforumcounter table
array
$validfields
= array(Array of recognised and required fields for forums, and their types
Inherited from vB_DataManager
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
Constructor vB_DataManager_Forum (line 118)
Constructor - checks that the registry object has been passed correctly.
delete (line 493)
Deletes a forum and its associated data from the database
do_set (line 132)
Takes valid data and sets it as part of the data to be saved
is_subforum_of (line 300)
Verifies that a given forum parent id is not one of its own children
post_save_each (line 366)
Additional data to update after a save call (such as denormalized values in other tables).
In batch updates, is executed for each record updated.
post_save_once (line 481)
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.
pre_save (line 346)
Any checks to run immediately before saving. If returning false, the save will not take place.
verify_description (line 211)
Converts & to & and sets description_clean for use in meta tags
verify_emaillist (line 240)
Validates a space-separated list of email addresses, prevents duplicates etc.
verify_imageprefix (line 329)
Verifies that an image filename prefix is valid
verify_options (line 226)
Converts an array of 1/0 options into the options bitfield
verify_parentid (line 264)
Verifies that the parent forum specified exists and is a valid parent for this forum
verify_title (line 187)
Verifies that the given forum title is valid
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