Implements interfaces:
Base class DBMS_TABLEOBJ to handel table data in an object
Located in /db/DBMS_TABLEOBJ.phpclass (line 46)
OCSP_OBJ | --DBMS_TABLEOBJ
Class | Description |
---|---|
![]() |
Class file AUDIENCE.phpclass |
![]() |
Base class DBMS_TABLEOBJ to handel table data in an object |
![]() |
Class CLIENT |
![]() |
Class file CLI_PROFILE_ENTRY.phpclass |
![]() |
Class file CLI_STAFF.phpclass |
![]() |
Class file CLI_STAFF_TYPE.phpclass |
![]() |
Class file CLI_STATE.phpclass |
![]() |
Class file CLI_TYPE.phpclass |
![]() |
openCSP class TMPL_CHAPTER |
![]() |
Abstract Class CMS_TABLEOBJ |
![]() |
Base class DBMS_TABLEOBJ to handel table data in an object |
![]() |
openCSP class DBMS_JOINOBJ |
![]() |
openCSP class DBMS_SIMPLETREE |
![]() |
ABSTRACT class DBMS_TREE to handel table tree data in an object |
![]() |
Class MED_MIMETYPE |
![]() |
Abstract Class MED_TABLEOBJ |
![]() |
openCSP class OCSP_MODULE uses the singleton pattern |
![]() |
openCSP class OCSP_MOD_CONF |
![]() |
openCSP class PRO_PART |
![]() |
Class PRO_PARTTYPE |
![]() |
Class PRO_PRODTYPE |
![]() |
openCSP class PRO_PRODUCT |
![]() |
openCSP class PRO_GROUP |
![]() |
openCSP class PRO_GROUP_TYPE |
![]() |
openCSP class PRO_PROD_TYPE |
![]() |
openCSP class PRO_PART_TYPE |
![]() |
openCSP class SHOP_ORDER |
![]() |
openCSP class SHOP_ORDERITEM |
![]() |
Base class DBMS_TABLEOBJ to handel table data in an object |
![]() |
Class class OCSP_GROUP handles T_SYS_GROUP |
array of already seen tables definitions
array of linked (joined) table rows
this is used if a form has subtables or joins which are not directly implemented in the table object class to change this values on insert,update or delete
structure of the array:
NOT FINAL !!!!!
Inherited from OCSP_OBJ
OCSP_OBJ::$global_currentUser
OCSP_OBJ::$global_defaultDBObj_read
OCSP_OBJ::$global_defaultDBObj_write
OCSP_OBJ::$myDBObj
constructor
PROTECTED cache object to filesystem
writes CLASS Variables to class Cache-File
clears all errors
returns the the data array of a joins to the current row
requirements:
returns a database form
inserts a new row to the table
populates the object values form the database
replaces a row in the table
if the object has not been populated (!$this->populateTS) False is returned
save the Object if $this->autoIncFld is not empty
if (!empty($this->{$this->autoIncFld})) dbReplace is called else dbInsert
overwrite in child classes to addopt to your needs
sets an array with keys
returns the class source file if $this->classSrcFile is set
add the following code to your class:
returns the dbDesc array ($this->myFields);
returns the value of a db column
NOTE no check of the value is accurate
returns a field => value array
used also in insert and update statements
make sure to not include some special values and object columns are serialised
returns a field => value array for dbms
use this in cms and dbms elements to get $DBVAL array
overwrite this and add some special values for objects if needed
returns an array of db default values
returns the db default value for aField
replaces dbGetForm and returns a OCSP_FORM
returns the form class name to use
if you overwrite this method make sure the returned form class source has been included
returns the required form name
normaly this function return Null to let $this->getForm decide which form ($this->getMyTable()) to use. In some subclasses it can be useful to overwrite this methode to get a special form
This is also a way to tell ajax reloads to change form. in jOCSP/formRPC.php is checked wether the currently loaded form (from the environment) fits to the forms tableobject if this function returns a value.
returns a json string for the object data
returns the key array an array of all key fields
returns the object value array
returns an object value value
returns the populate timestamp if it returns 0 the object has not been populated which means not that it is empty
generates a where clause to select the object identfied by DBMS_TBLOBJ::myKeys
returns if the table as a column named $colName
initalize the object
returns if the primary key columns are set
populates the object from a key array NOTE if more columns fit $keys only the first is set
populates the object by extracting keys from a value array
populates the Object values
PROTECTED check if cache is expired
returns if chache has reached OCSP_OBJ::getConf('OBJCACHEPATH')
saves a linked row due to $cmd
handels linked tables after insert
saves the object values
sets the changed flag ($this->valChangeTS > $this-populateTS)
sets the value of a object var (DB COLUMN)
NOTE: does not save youe have to call DBMS_TBLOBJ::dbsave() to save the value permanently in the database
sets the value of an object var (DB COLUMN) if it differs with $aValue
if you use this method you can check with $this::hasChanged() method if the object values differs from the database value.
sets the value of an column if it is empty or not set
if you use this method you can check with $this::hasChanged() method if the object values differs from the database value.
sets a database row to the object fields
sets each key (=columname) value
if $row['__OCSP_OBJ_VALS__'] isset and an array this values are set as object values else if $asPopulated object values are loaded
sets all fields of an array to the objcet
sets the database default values to the fields
COUTION overrides populated values
sets the row of an other table
this method is used to cache form values of other tables which are joined in to $this->myTable
this rows must be considert in insert,update,delete
possible commands are
sets the table name an recals init if $this->myTable != $aTablName
sets an array of values as object values
sets an object value value
sets an object var if it's empty or null NOTE the object var has to be set already NOTE does not set the changed flag
clears the changed flag
echos the object
adds TableObject Contents to domRoot
xmlExport of a Table Object
PROTECTED get the name of the cache file
returns the full path to the cache file name or False if cacheing is disabled by not setting $GLOBALS['PROJECT']['OBJCACHEPATH']
class method sets $this->myFields
Inherited From OCSP_OBJ
OCSP_OBJ::castObj()
OCSP_OBJ::cloneMe()
OCSP_OBJ::currentUser()
OCSP_OBJ::dbConnect()
OCSP_OBJ::defaultDBObj()
OCSP_OBJ::defaultReadDBObj()
OCSP_OBJ::defaultWriteDBObj()
OCSP_OBJ::getConf()
OCSP_OBJ::getDBObj()
OCSP_OBJ::get_myClassConstant()
OCSP_OBJ::get_myObject_vars()
OCSP_OBJ::get_mySourceFile()
OCSP_OBJ::isConnected()
OCSP_OBJ::isMultiByteStr()
OCSP_OBJ::isUTF8()
OCSP_OBJ::setConf()
OCSP_OBJ::setDBObj()
OCSP_OBJ::set_myObject_vars()
OCSP_OBJ::set_myVarsFrom()
Inherited from OCSP_OBJ
OCSP_OBJ::CLASS_SRC_FILE
Documentation generated on Thu, 08 Jan 2009 17:43:52 +0100 by phpDocumentor 1.4.0a2