NewsFeaturesDownloadsDevelopmentSupportAbout Us

DbObject Class Reference
[Database]

Inherited by Article, ArticleCategory, ArticleNotification, BayesianFilterInfo, BayesianToken, BlogCategory, BlogInfo, CustomField, CustomFieldValue, GalleryAlbum, GalleryResource, GlobalArticleCategory, MyLink, MyLinksCategory, Permission, Referer, UserComment, UserInfo, and UserPermission.

List of all members.


Public Member Functions

 DbObject ()
 setValue ($key, $value)
 getValue ($key)
 setProperties ($properties)
 getProperties ()
 getClass ()
 getPK ()
 getFields ()
 getFieldGetters ()

Public Attributes

 $_table
 $_pk
 $_class
 $_fields
 $_properties
 $unserializable

Private Member Functions

 __sleep ()

Detailed Description

The DbObject is the object that ideally all object representing one database row should extend. It doesn't provide too many features yet but it is planned to provide them in the future.

Definition at line 10 of file dbobject.class.php.


Member Function Documentation

DbObject.setValue ( key,
value 
)

Reimplemented in BlogInfo.

Definition at line 29 of file dbobject.class.php.

Referenced by XmlRpcServer_Test.testMetaWeblogGetPost().

DbObject.getProperties (  ) 

Reimplemented in Article, BlogCategory, GlobalArticleCategory, and GalleryAlbum.

Definition at line 44 of file dbobject.class.php.

DbObject.getClass (  ) 

Definition at line 49 of file dbobject.class.php.

DbObject.getPK (  ) 

Definition at line 54 of file dbobject.class.php.

DbObject.getFields (  ) 

Definition at line 59 of file dbobject.class.php.

DbObject.getFieldGetters (  ) 

Definition at line 64 of file dbobject.class.php.

DbObject.__sleep (  )  [private]

No null values are serialized to the session. If there any values in your data class that need not be serialized to the cache, please implement your own version of __sleep, set those attributes to null and call parent.__sleep() so that those attributes are not serialized.

Reimplemented in Article, ArticleCategory, BlogInfo, UserComment, and UserInfo.

Definition at line 77 of file dbobject.class.php.

References $vars.


Member Data Documentation

DbObject.$_table

Definition at line 12 of file dbobject.class.php.

DbObject.$_pk

Definition at line 13 of file dbobject.class.php.

DbObject.$_class

Definition at line 14 of file dbobject.class.php.

DbObject.$_fields

Definition at line 15 of file dbobject.class.php.

DbObject.$_properties

Reimplemented in Article, BlogCategory, GlobalArticleCategory, and GalleryAlbum.

Definition at line 16 of file dbobject.class.php.

DbObject.$unserializable

Definition at line 17 of file dbobject.class.php.