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])
mixed
save
([boolean $doquery = true], [mixed $delayed = false], [bool $affected_rows = false], [bool $replace = false], [ $ignore = false])
array
$bitfields
= array('options' => 'bf_misc_forumoptions') (line 83)
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 111)
Condition template for update query
array
$forum
= array() (line 97)
Array to store stuff to save to forum table
string
$table
= 'forum' (line 90)
The main table this class deals with
array
$tachyforumcounter
= array() (line 104)
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::$hook_delete
vB_DataManager::$hook_postsave
vB_DataManager::$hook_presave
vB_DataManager::$hook_start
vB_DataManager::$info
vB_DataManager::$lamda
vB_DataManager::$presave_called
vB_DataManager::$rawfields
vB_DataManager::$registry
vB_DataManager::$setfields
Constructor vB_DataManager_Forum (line 119)
Constructor - checks that the registry object has been passed correctly.
delete (line 521)
Deletes a forum and its associated data from the database
do_set (line 133)
Takes valid data and sets it as part of the data to be saved
is_subforum_of (line 302)
Verifies that a given forum parent id is not one of its own children
post_save_each (line 368)
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 484)
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 348)
Any checks to run immediately before saving. If returning false, the save will not take place.
save (line 505)
Overridding parent function to add search index updates
verify_description (line 213)
Converts & to & and sets description_clean for use in meta tags
verify_emaillist (line 242)
Validates a space-separated list of email addresses, prevents duplicates etc.
verify_imageprefix (line 331)
Verifies that an image filename prefix is valid
verify_options (line 228)
Converts an array of 1/0 options into the options bitfield
verify_parentid (line 266)
Verifies that the parent forum specified exists and is a valid parent for this forum
verify_title (line 189)
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_nonzero_or_negone()
vB_DataManager::verify_pagetext()
vB_DataManager::verify_serialized()
vB_DataManager::verify_spacelist()
vB_DataManager::verify_userid()
vB_DataManager::verify_username()
Documentation generated on Tue, 26 Jan 2010 15:15:15 -0600 by phpDocumentor 1.4.3