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

Public Member Functions

createObject ($oid=null)
 
 appendObject (&$object, &$dependendObject)
 
 applyDataOnLoad (&$object, $objectData, $attribs)
 
 applyDataOnCreate (&$object, $objectData, $attribs)
 
 getObjectDefinition ()
 
- 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

NodeRDBMapper maps Node objects to a relational database schema where each Node type has its own table. It defines a persistence mechanism that specialized mappers customize by overriding the given template methods.

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.NodeRDBMapper.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 34 of file class.NodeRDBMapper.php.

Member Function Documentation

& NodeRDBMapper::createObject (   $oid = null)
See Also
RDBMapper::createObject()

Definition at line 39 of file class.NodeRDBMapper.php.

References RDBMapper\getType().

+ Here is the call graph for this function:

NodeRDBMapper::appendObject ( $object,
$dependendObject 
)
See Also
RDBMapper::appendObject()

Definition at line 46 of file class.NodeRDBMapper.php.

NodeRDBMapper::applyDataOnLoad ( $object,
  $objectData,
  $attribs 
)
See Also
RDBMapper::applyDataOnLoad()

Definition at line 53 of file class.NodeRDBMapper.php.

References PersistenceFacade\composeOID().

+ Here is the call graph for this function:

NodeRDBMapper::applyDataOnCreate ( $object,
  $objectData,
  $attribs 
)
See Also
RDBMapper::applyDataOnCreate()

Definition at line 92 of file class.NodeRDBMapper.php.

References PersistenceFacade\composeOID(), PersistenceFacade\getDummyId(), and RDBMapper\isPkValue().

+ Here is the call graph for this function:

NodeRDBMapper::getObjectDefinition ( )
See Also
RDBMapper::getObjectDefinition()

The _datadef key holds the following structure:

An array of assoziative arrays with the keys 'name', 'app_data_type' plus application specific keys for every data item. All keys except 'name' and 'app_data_type' will become keys in the objects valueProperties array hold for each data item while 'name' and 'app_data_type' are used to identify the values, see PersistentObject::getValue(). (e.g. array('name' => 'title', 'db_data_type' => 'VARCHAR(255)', 'app_data_type' => DATATYPE_ATTRIBUTE, 'default' => 'Hello World!'))
Known keys are:

  • db_data_type: The database data type of the attribute. This may be used to decide on value conversions in the assoziated DataConverter class
  • default: The default value (will be set when creating a blank object, see PersistenceMapper::create())
  • restrictions_match: A regular expression that the value must match (e.g. '[0-3][0-9].[0-1][0-9].[0-9][0-9][0-9][0-9]' for date values)
  • restrictions_not_match: A regular expression that the value must NOT match
  • is_editable: true, false whether the value should be editable, see FormUtil::getInputControl()
  • input_type: The HTML input type for the value, see FormUtil::getInputControl()
  • display_type: The HTML display type for the value, see NodeUtil::getDisplayValue()

Definition at line 140 of file class.NodeRDBMapper.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:


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