vB_DataManager_AttachmentAbstract class to do data save/delete operations for ATTACHMENTS.
You should call the fetch_library() function to instantiate the correct object based on how attachments are being stored unless calling the multiple datamanager. There is no support for manipulating the FS via the multiple datamanager at the present.
Located in /includes/class_dm_attachment.php (line 32)
vB_DataManager | --vB_DataManager_Attachment
| Class | Description |
|---|---|
vB_DataManager_Attachment_Database
|
Class to do data save/delete operations for ATTACHMENTS in the DATABASE. |
vB_DataManager_Attachment_Filesystem
|
Class to do data save/delete operations for ATTACHMENTS in the FILE SYSTEM. |
vB_DataManager_Attachment
vB_DataManager_Attachment
(vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
vB_DataManager_Attachment
&fetch_library
(vB_Registry &$registry, [integer $errtype = ERRTYPE_ARRAY])
array
$condition_construct
= array('attachmentid = %1$d', 'attachmentid') (line 84)
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.
array
$lists
= array() (line 69)
Storage holder
boolean
$log
= true (line 76)
Switch to control modlog update
string
$table
= 'attachment' (line 62)
The main table this class deals with
array
$validfields
= array(Array of recognized and required fields for attachment inserts
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
Constructor vB_DataManager_Attachment (line 92)
Constructor - checks that the registry object has been passed correctly.
fetch_library (line 107)
Fetches the appropriate subclassed based on how attachments are being stored.
post_delete (line 408)
Any code to run after deleting
post_save_each (line 282)
Additional data to update after a save call (such as denormalized values in other tables).
In batch updates, is executed for each record updated.
pre_delete (line 311)
Any code to run before deleting. Builds lists and updates mod log
pre_save (line 230)
Any checks to run immediately before saving. If returning false, the save will not take place.
save (line 191)
Saves the data from the object into the specified database tables Overwrites parent
verify_filedata (line 174)
Set the filehash/filesize of the file
verify_filename (line 133)
Set the extension of the filename
verify_md5_alt (line 121)
Verify that posthash is either md5 or empty
verify_thumbnail (line 158)
Set the filesize of the thumbnail
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:00 -0500 by phpDocumentor 1.4.1