wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
TableUnifiedRDBMapper Class Reference
+ Inheritance diagram for TableUnifiedRDBMapper:

Public Member Functions

 getSelectSQL ($condStr, $orderStr=null, $attribs=null, $asArray=false)
 
 getInsertSQL (&$object)
 
 getUpdateSQL (&$object)
 
 getDeleteSQL ($oid)
 
 isValidOID ($oid)
 
 createPKCondition ($oid)
 
- Public Member Functions inherited from TableRDBMapper
createObject ($oid=null)
 
 appendObject (&$object, &$dependendObject)
 
 applyDataOnLoad (&$object, $objectData, $attribs)
 
 applyDataOnCreate (&$object, $objectData, $attribs)
 
 getObjectDefinition ()
 
 getChildrenSelectSQL ($oid, $compositionOnly=false)
 
- Public Member Functions inherited from RDBMapper
 RDBMapper ($params)
 
 __sleep ()
 
 connect ()
 
 getNextId ()
 
 getSequenceTablename ()
 
 executeSql ($sql, $isSelect=false)
 
 select ($sql, &$pagingInfo)
 
 isPkValue ($name, $dataType)
 
 constructOID ($type, $data)
 
 getPKNamesForType ($type)
 
loadImpl ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
createImpl ($type, $buildDepth, $buildAttribs=null)
 
 saveImpl (&$object)
 
 deleteImpl ($oid, $recursive=true)
 
getConnection ()
 
 getOIDs ($type, $criteria=null, $orderby=null, &$pagingInfo)
 
 loadObjects ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null, $selectChildOIDs=true, $omitObjects=false)
 
createObjectFromData ($attribs, $data=null)
 
 appendChildData (&$object, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
 startTransaction ()
 
 commitTransaction ()
 
 rollbackTransaction ()
 
createObject ($oid=null)
 
 appendObject (&$object, &$dependendObject)
 
 applyDataOnLoad (&$object, $objectData, $attribs)
 
 applyDataOnCreate (&$object, $objectData, $attribs)
 
 prepareInsert (&$object)
 
 getType ()
 
 getObjectDefinition ()
 
 getSelectSQL ($condStr, $orderStr=null, $attribs=null, $asArray=false)
 
 getChildrenSelectSQL ($oid, $compositionOnly=false)
 
 getChildrenDisassociateSQL ($oid, $sharedOnly=false)
 
 getInsertSQL (&$object)
 
 getUpdateSQL (&$object)
 
 getDeleteSQL ($oid)
 
 createPKCondition ($oid)
 
- Public Member Functions inherited from PersistenceMapper
 getType ()
 
 getPkNames ()
 
 setDataConverter ($dataConverter)
 
 getDataConverter ()
 
 enableLogging ($logStrategy)
 
 disableLogging ()
 
 isLogging ()
 
 logAction (&$obj)
 
load ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
create ($type, $buildDepth, $buildAttribs=null)
 
 save (&$object)
 
 delete ($oid, $recursive=true)
 
 checkAuthorization ($oid, $action)
 
 authorizationFailedError ($oid, $action)
 
 initialize (&$object)
 
 isValidOID ($oid)
 
loadImpl ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
createImpl ($type, $buildDepth, $buildAttribs=null)
 
 saveImpl (&$object)
 
 deleteImpl ($oid, $recursive=true)
 
 getOIDs ($type, $criteria=null, $orderby=null, &$pagingInfo)
 
 loadObjects ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null)
 
 getOrderBy ()
 
 startTransaction ()
 
 commitTransaction ()
 
 rollbackTransaction ()
 

Additional Inherited Members

- Public Attributes inherited from RDBMapper
 $_connParams = null
 
 $_conn = null
 
 $_dbPrefix = ''
 
 $_idSelectStmt = null
 
 $_idInsertStmt = null
 
 $_idUpdateStmt = null
 
- Public Attributes inherited from PersistenceMapper
 $_dataConverter = null
 
 $_type = ''
 
 $_logging = false
 
 $_logStrategy = null
 

Detailed Description

TableRDBMapper maps Table objects to a relational database schema where one object contains several table rows. In comparison to TableRDBMapper it implements the template methods in a way that handles unified table definitions (e.g. tables are named as the type, primary keys are named 'id' and attribute names correspond to table columns). Subclasses simply need to define $_type as the mapper type and implement the getObjectDefinition() method.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.TableUnifiedRDBMapper.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 37 of file class.TableUnifiedRDBMapper.php.

Member Function Documentation

TableUnifiedRDBMapper::getSelectSQL (   $condStr,
  $orderStr = null,
  $attribs = null,
  $asArray = false 
)
See Also
TableRDBMapper::getSelectSQL()

Definition at line 42 of file class.TableUnifiedRDBMapper.php.

References TableRDBMapper\getObjectDefinition(), RDBMapper\getType(), and StringUtil\removeTrailingComma().

+ Here is the call graph for this function:

TableUnifiedRDBMapper::getInsertSQL ( $object)
See Also
TableRDBMapper::getInsertSQL()
Note
This mapper empties the corresponding database table first and fills in the values afterwards.

Definition at line 77 of file class.TableUnifiedRDBMapper.php.

References getUpdateSQL().

+ Here is the call graph for this function:

TableUnifiedRDBMapper::getUpdateSQL ( $object)
See Also
TableRDBMapper::getUpdateSQL()
Note
This mapper empties the corresponding database table first and fills in the values afterwards.

Definition at line 85 of file class.TableUnifiedRDBMapper.php.

References getDeleteSQL(), RDBMapper\getType(), and StringUtil\removeTrailingComma().

Referenced by getInsertSQL().

+ Here is the call graph for this function:

TableUnifiedRDBMapper::getDeleteSQL (   $oid)
See Also
TableRDBMapper::getDeleteSQL()
Note
This mapper empties the corresponding database table.

Definition at line 105 of file class.TableUnifiedRDBMapper.php.

Referenced by getUpdateSQL().

TableUnifiedRDBMapper::isValidOID (   $oid)
See Also
PersistenceMapper::isValidOID()

Definition at line 112 of file class.TableUnifiedRDBMapper.php.

References PersistenceFacade\decomposeOID(), and RDBMapper\getType().

+ Here is the call graph for this function:

TableUnifiedRDBMapper::createPKCondition (   $oid)

The documentation for this class was generated from the following file: