AWF_DBContentObject

Filename

inc/classes.inc

Parents

AWF_ContentObject

Dependencies

Properties

protected $db_table = ''

This is the table name, for example 'my_articles'

protected $db_numeric_key = 'id'

The primary key of the table

protected $db_string_key = ''

An optional string key, like 'short_name'

protected $db_site_key = ''

An optional key for the site_id, which is compared with AWF's SITE_ID constant (0 means all sites)

protected $db_props = array()

Should contain all properties that are stored in the db table (EXEPTION: $db_numeric_key)

Methods

function load ($identifier = NULL)

This function loads the properties defined in $db_props from the database

function save ($set_timestamp = TRUE)

This function writes the properties listed in $db_props to the database table

function delete ()

This function deletes the content and properties of this object permanently (take care!)

PDF version

Created: 09.01.2006 04:26 CET, Last Change: 09.01.2006 09:02 CET by admin

Login

or create a new account

Username


Password