wcmf logo wemove logo

NodeRDBMapper Class Reference
[Mapper]

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. More...

Inheritance diagram for NodeRDBMapper:

Inheritance graph
[legend]

Public Member Functions

createObject ($oid=null)
 appendObject (&$object, &$dependendObject)
 applyDataOnLoad (&$object, $objectData, $attribs)
 applyDataOnCreate (&$object, $objectData, $attribs)
 getObjectDefinition ()

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-2009 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 929 2009-02-22 23:20:49Z iherwig

Author:
ingo herwig <ingo@wemove.com>

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


Member Function Documentation

& createObject ( oid = null  ) 

See also:
RDBMapper::createObject()

Reimplemented from RDBMapper.

Reimplemented in AdodbseqRDBMapper, LocktableRDBMapper, NMUserRoleRDBMapper, RoleRDBRDBMapper, and UserRDBRDBMapper.

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

References RDBMapper::getType().

Here is the call graph for this function:

appendObject ( &$  object,
&$  dependendObject 
)

See also:
RDBMapper::appendObject()

Reimplemented from RDBMapper.

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

applyDataOnLoad ( &$  object,
objectData,
attribs 
)

See also:
RDBMapper::applyDataOnLoad()

Reimplemented from RDBMapper.

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

References PersistenceFacade::composeOID().

Here is the call graph for this function:

applyDataOnCreate ( &$  object,
objectData,
attribs 
)

See also:
RDBMapper::applyDataOnCreate()

Reimplemented from RDBMapper.

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:

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()

Reimplemented from RDBMapper.

Reimplemented in NodeUnifiedRDBMapper.

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:

This page generated via doxygen 1.5.8 Mon Mar 30 01:58:44 2009.
Copyright © 2009 wemove digital solutions GmbH.
sourceforge logo