Class vB_DataManager_Picture

Description
  • version: $Revision: 26098 $
  • date: $Date: 2008-03-14 06:52:33 -0500 (Fri, 14 Mar 2008) $

Located in /includes/class_dm_picture.php (line 23)

vB_DataManager
   |
   --vB_DataManager_Picture
Direct descendents
Class Description
 class vB_DataManager_Picture_Database Concrete version of the picture DM for database storage.
 class vB_DataManager_Picture_Filesystem Concrete version of the picture DM for filesystem storage.
Variable Summary
 mixed $info
 array $picture
 string $table
 array $validfields
Method Summary
 vB_DataManager_Picture vB_DataManager_Picture (vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
 boolean post_delete ([boolean $doquery = true])
 boolean post_save_each ([boolean $doquery = true])
 true pre_delete ([Boolean $doquery = true])
 boolean pre_save ([boolean $doquery = true])
 true verify_extension (string &$extension)
 boolean verify_filedata (integer &$filedata)
 boolean verify_state (string &$state)
 boolean verify_thumbnail (integer &$thumbnail)
Variables
array $condition_construct = array('pictureid = %1$d', 'pictureid') (line 74)

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.


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.
mixed $info = array(
'albums' => array(),'dateline'=>0,'auto_count_update'=>true,'have_updated_usercss'=>false)
(line 61)

Redefinition of:
vB_DataManager::$info
Array to store information
array $picture = array() (line 59)

Arrays to store stuff to save to picture-related tables

string $table = 'picture' (line 52)
  • var: The main table this class deals with

Redefinition of:
vB_DataManager::$table
Default table to be used in queries
array $validfields = array(
'pictureid' => array(TYPE_UINT, REQ_INCR),'userid'=>array(TYPE_UINT,REQ_YES),'caption'=>array(TYPE_NOHTMLCOND,REQ_NO),'extension'=>array(TYPE_NOHTMLCOND,REQ_YES,VF_METHOD),'filedata'=>array(TYPE_BINARY,REQ_NO,VF_METHOD),'filesize'=>array(TYPE_UINT,REQ_YES),'width'=>array(TYPE_UINT,REQ_NO),'height'=>array(TYPE_UINT,REQ_NO),'thumbnail'=>array(TYPE_BINARY,REQ_NO,VF_METHOD),'thumbnail_dateline'=>array(TYPE_UINT,REQ_NO),'thumbnail_filesize'=>array(TYPE_UINT,REQ_NO),'thumbnail_width'=>array(TYPE_UINT,REQ_NO),'thumbnail_height'=>array(TYPE_UINT,REQ_NO),'idhash'=>array(TYPE_STR,REQ_AUTO),'state'=>array(TYPE_STR,REQ_NO,VF_METHOD),)
(line 30)

Array of recognized and required fields for album picture inserts


Redefinition of:
vB_DataManager::$validfields
Array of field names that are valid for this data object

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::$lamda
vB_DataManager::$presave_called
vB_DataManager::$rawfields
vB_DataManager::$registry
vB_DataManager::$setfields
Methods
Constructor vB_DataManager_Picture (line 82)

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

vB_DataManager_Picture vB_DataManager_Picture (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 276)

Code to run after deleting

  • return: Was this code executed correctly?
boolean 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).

Redefined in descendants as:
post_save_each (line 230)

Code to run after saving

  • return: Whether this code executed correctly
boolean 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).

Redefined in descendants as:
pre_delete (line 164)

Any code to run before deleting.

true pre_delete ([Boolean $doquery = true])
  • Boolean $doquery: Do the query?

Redefinition of:
vB_DataManager::pre_delete()
Additional data to update before a delete call (such as denormalized values in other tables).
pre_save (line 179)

Code to run before saving

  • return: Whether this code executed correctly
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.

Redefined in descendants as:
verify_extension (line 101)

Makes the extension lowercase

true verify_extension (string &$extension)
  • string &$extension: The Extension
verify_filedata (line 131)

Set the filehash/filesize of the file

boolean verify_filedata (integer &$filedata)
  • integer &$filedata: Maximum posts per page
verify_state (line 114)

Set the visible state of the picture

boolean verify_state (string &$state)
  • string &$state: State (visible or moderation)
verify_thumbnail (line 148)

Set the filesize of the thumbnail

boolean verify_thumbnail (integer &$thumbnail)
  • integer &$thumbnail: Maximum posts per page

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:02 -0500 by phpDocumentor 1.4.1