Class PRO_PART

Description

Implements interfaces:

openCSP class PRO_PART

Located in /products/PRO_PART.phpclass (line 36)

OCSP_OBJ
   |
   --DBMS_TABLEOBJ
      |
      --PRO_PART
Class Constant Summary
 CLASS_SRC_FILE = __FILE__
Variable Summary
Method Summary
 static PRO_PART &factoryFromId (int $aId, [boolean $debug = False])
 static PRO_PART &getInstance (int $aId, [boolean $debug = False])
 static boolean isInstanced (int $aId)
 static void setInstance ( &$aPart, [debug $debug = False], PRO_PART $aPart)
 int dbInsert ([boolean $debug = False])
 mixed dbSave ([boolean $debug = False])
 int getAvailable ()
 int getId ()
 int getOrderNr ()
 float getPrice ()
 int getProductId ()
 int getProGroupId ()
 boolean isCampained ()
 boolean isOnline ([boolean $debug = False])
 void setAvailableQuant (int $quant)
 void setId (int $aId)
 void setProduct ( &$aProduct, PRO_PRODUCT $aProduct)
Variables
Methods
static factoryFromId (line 143)

factories a part

  • access: public
PRO_PART &factoryFromId (int $aId, [boolean $debug = False])
  • int $aId
  • boolean $debug
static getInstance (line 65)

returns an instance of a part

  • access: public
PRO_PART &getInstance (int $aId, [boolean $debug = False])
  • int $aId
  • boolean $debug
static isInstanced (line 106)

returns if a part has been added to the identity map

  • access: public
boolean isInstanced (int $aId)
  • int $aId
static setInstance (line 90)

adds an instance to self::$loadedParts

  • access: public
void setInstance ( &$aPart, [debug $debug = False], PRO_PART $aPart)
dbInsert (line 250)

inserts a new row to the table

  • return: returns the autoIncFld ID if exists or 1 on success
int dbInsert ([boolean $debug = False])
  • boolean $debug: show debug info

Redefinition of:
DBMS_TABLEOBJ::dbInsert()
inserts a new row to the table
dbSave (line 232)

save the part to the database

  • access: public
mixed dbSave ([boolean $debug = False])
  • boolean $debug: SHOW DEBUG INFO

Redefinition of:
DBMS_TABLEOBJ::dbSave()
save the Object if $this->autoIncFld is not empty
getAvailable (line 195)

returns the available quantity of the part

  • access: public
int getAvailable ()
getId (line 165)

returns the product id

  • access: public
int getId ()
getOrderNr (line 185)

returns the sort order number

  • access: public
int getOrderNr ()
getPrice (line 215)

returns the price of the part

  • access: public
float getPrice ()
getProduct (line 309)

returns the product

  • access: public
PRO_PRODUCT &getProduct ()
getProductId (line 299)

returns the product id

  • access: public
int getProductId ()
getProGroup (line 284)

retruns the product group

  • access: public
PRO_GROUP getProGroup ()
getProGroupId (line 274)

returns the product group id

  • access: public
int getProGroupId ()
isCampained (line 373)

returns if the part is in a campain

  • access: public
boolean isCampained ()
isOnline (line 341)

returns if the part is online

  • access: public
boolean isOnline ([boolean $debug = False])
  • boolean $debug
setAvailableQuant (line 205)

sets the available quantity of the part

  • access: public
void setAvailableQuant (int $quant)
  • int $quant
setId (line 175)

sets the product id

  • access: public
void setId (int $aId)
  • int $aId
setProduct (line 323)

sets the product object

  • access: public
void setProduct ( &$aProduct, PRO_PRODUCT $aProduct)

Inherited Methods

Inherited From DBMS_TABLEOBJ

 DBMS_TABLEOBJ::DBMS_TABLEOBJ()
 DBMS_TABLEOBJ::cacheRestore()
 DBMS_TABLEOBJ::cacheWriteTo()
 DBMS_TABLEOBJ::clearErrors()
 DBMS_TABLEOBJ::dbDelete()
 DBMS_TABLEOBJ::dbGetDataArray()
 DBMS_TABLEOBJ::dbGetForm()
 DBMS_TABLEOBJ::dbInsert()
 DBMS_TABLEOBJ::dbPopulate()
 DBMS_TABLEOBJ::dbReplace()
 DBMS_TABLEOBJ::dbSave()
 DBMS_TABLEOBJ::db_SetKey()
 DBMS_TABLEOBJ::db_SetKeyArray()
 DBMS_TABLEOBJ::getClassInclude()
 DBMS_TABLEOBJ::getDbDesc()
 DBMS_TABLEOBJ::getDBField()
 DBMS_TABLEOBJ::getDBRow()
 DBMS_TABLEOBJ::getDBVal()
 DBMS_TABLEOBJ::getDefaults()
 DBMS_TABLEOBJ::getErrorMsg()
 DBMS_TABLEOBJ::getFieldDBDefault()
 DBMS_TABLEOBJ::getForm()
 DBMS_TABLEOBJ::getFormClassName()
 DBMS_TABLEOBJ::getFormName()
 DBMS_TABLEOBJ::getJSON()
 DBMS_TABLEOBJ::getKeyArr()
 DBMS_TABLEOBJ::getMyTable()
 DBMS_TABLEOBJ::getObjValArray()
 DBMS_TABLEOBJ::getObjValValue()
 DBMS_TABLEOBJ::getPopulateTs()
 DBMS_TABLEOBJ::getWhere()
 DBMS_TABLEOBJ::hasChanged()
 DBMS_TABLEOBJ::hasColumn()
 DBMS_TABLEOBJ::hasErrors()
 DBMS_TABLEOBJ::hasObjVals()
 DBMS_TABLEOBJ::init()
 DBMS_TABLEOBJ::isInit()
 DBMS_TABLEOBJ::isPopulated()
 DBMS_TABLEOBJ::keysAreSet()
 DBMS_TABLEOBJ::populateFromKeys()
 DBMS_TABLEOBJ::populateFromValues()
 DBMS_TABLEOBJ::populateObjVals()
 DBMS_TABLEOBJ::p_cacheIsExpired()
 DBMS_TABLEOBJ::saveLinkedRow()
 DBMS_TABLEOBJ::saveLinkedTableRows()
 DBMS_TABLEOBJ::saveObjVals()
 DBMS_TABLEOBJ::setChanged()
 DBMS_TABLEOBJ::setDBField()
 DBMS_TABLEOBJ::setDBFieldIfDiff()
 DBMS_TABLEOBJ::setDBFieldIfEmpty()
 DBMS_TABLEOBJ::setDBRow()
 DBMS_TABLEOBJ::setDBVal()
 DBMS_TABLEOBJ::setDefaults()
 DBMS_TABLEOBJ::setError()
 DBMS_TABLEOBJ::setLinkedTableRow()
 DBMS_TABLEOBJ::setMyTable()
 DBMS_TABLEOBJ::setObjValArray()
 DBMS_TABLEOBJ::setObjValValue()
 DBMS_TABLEOBJ::setObjVarIfEmpty()
 DBMS_TABLEOBJ::setUnChanged()
 DBMS_TABLEOBJ::userIsAllowed()
 DBMS_TABLEOBJ::writeDebugInfo()
 DBMS_TABLEOBJ::xmladdDOMElement()
 DBMS_TABLEOBJ::xmlExport()
 DBMS_TABLEOBJ::_getCacheFileName()
 DBMS_TABLEOBJ::_getDBFields()

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()
Class Constants
CLASS_SRC_FILE = __FILE__ (line 45)

Inherited Constants

Inherited from DBMS_TABLEOBJ

DBMS_TABLEOBJ::CLASS_SRC_FILE

Inherited from OCSP_OBJ

OCSP_OBJ::CLASS_SRC_FILE

Documentation generated on Thu, 08 Jan 2009 17:48:13 +0100 by phpDocumentor 1.4.0a2