AWF_ContentObject
Filename
Parents
Dependencies
Properties
public $site_id = NULL
If != 0, the access should only be allowed if $site_id == SITE_ID
public $views = 0
Set $views++ and write it to the database on each load ()
public $locked = 0
UNIX timestamp of content locking (temporary write protection)
public $created = 0
UNIX timestamp of content creation
public $changed = 0
UNIX timestamp of last change
public $published = TRUE
Content shall be readable for users (otherwise just for admins/editors)
public $my_container = NULL
Points to the AWF_ContentContainer
public $my_parent = NULL
Optional: Points to the parent AWF_ContentObject
Methods
abstract function load ($identifier = NULL)
This function will be called to initialize the object and load data from the database
abstract function save ($set_timestamp = TRUE)
Save to database. If $id == NULL, make an sql_insert(), else sql_update()
abstract function delete ()
Delete this content object in the database; normally calls sql_delete()
Created: 09.01.2006 04:26 CET, Last Change: 09.01.2006 11:16 CET by admin





