Class we_core_AbstractModel

Description

Base class for webEdition models

Located in /core/AbstractModel.php (line 28)

we_core_AbstractObject
   |
   --we_core_AbstractModel
Direct descendents
Class Description
we_app_Model Base class for app models
Variable Summary
array $_metadata
string $_primaryKey
string $_table
Method Summary
void __construct (string $table)
void delete ()
string getTable ()
boolean load ([integer $id = 0])
void loadPersistents ()
void save ()
void setFields ( $fields)
void setPersistentSlots (array $persistentSlots)
string _getPKCondition ()
Variables
array $_metadata = array() (line 57)

metadata attribute

  • access: protected
array $_persistentSlots = array() (line 50)

persistentSlots attribute

  • access: public
string $_primaryKey = "ID" (line 36)

primaryKey attribute

  • access: protected
string $_table = "" (line 43)

table attribute

  • access: protected
Methods
Constructor __construct (line 67)

Constructor

Set table and load persistents

void __construct (string $table)
  • string $table

Redefinition of:
we_core_AbstractObject::__construct()
Constructor

Redefined in descendants as:
delete (line 175)

delete entry from database

  • access: public
void delete ()

Redefined in descendants as:
getPersistentSlots (line 200)

load persistent slots

  • access: public
array getPersistentSlots ()
getTable (line 190)

retrieve table

  • access: public
string getTable ()
load (line 104)

Load entry from database

  • return: returns true on success, othewise false
  • access: public
boolean load ([integer $id = 0])
  • integer $id
loadPersistents (line 80)

load persistents

  • access: protected
void loadPersistents ()
save (line 133)

save entry in database

  • access: public
void save ()
setFields (line 222)
  • access: public
void setFields ( $fields)
  • $fields

Redefined in descendants as:
setPersistentSlots (line 211)

set persistent slots

  • access: public
void setPersistentSlots (array $persistentSlots)
  • array $persistentSlots
_getPKCondition (line 123)

returns primary key condition

  • access: protected
string _getPKCondition ()

Inherited Methods

Inherited From we_core_AbstractObject

we_core_AbstractObject::__construct()

Documentation generated on Mon, 01 Sep 2008 11:35:31 +0200 by phpDocumentor 1.4.0