|
wCMF
3.6
|
Inheritance diagram for NodeXMLDBMapper:Public Member Functions | |
| NodeXMLDBMapper ($params) | |
| setFilename ($params) | |
| getPkNames () | |
| & | loadImpl ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null) |
| & | createImpl ($type, $buildDepth, $buildAttribs) |
| saveImpl (&$node) | |
| deleteImpl ($oid, $recursive=true) | |
| getOIDs ($type, $criteria=null, $orderby=null, &$pagingInfo) | |
| loadObjects ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null) | |
| getOrderBy () | |
| startReadTransaction () | |
| startTransaction () | |
| commitTransaction () | |
| rollbackTransaction () | |
| openDatabase ($lock=true) | |
| closeDatabase () | |
| & | createObject ($type, $oid=null) |
| getNodeDefinition ($type) | |
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 () | |
Public Attributes | |
| $_filename = '' | |
| $_doctype = '' | |
| $_dtd = '' | |
| $_db = null | |
| $_inTransaction = false | |
Public Attributes inherited from PersistenceMapper | |
| $_dataConverter = null | |
| $_type = '' | |
| $_logging = false | |
| $_logStrategy = null | |
NodeXMLDBMapper maps Node objects to a xml file using the CXmlDb class. http://sourceforge.net/projects/phpxmldb.
insert doctype, dtd into XML file
when inserting children to a Node with text content the content is duplicated
Definition at line 53 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::NodeXMLDBMapper | ( | $params | ) |
Constructor.
| params | Initialization data given in an assoziative array with the following keys: filename, doctype, dtd |
Definition at line 69 of file class.NodeXMLDBMapper.php.
References WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::setFilename | ( | $params | ) |
Set the data file. Ends the transaction on the existing file.
| params | Initialization data given in an assoziative array with the following keys: filename, doctype, dtd |
Definition at line 107 of file class.NodeXMLDBMapper.php.
References commitTransaction(), and WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::getPkNames | ( | ) |
Definition at line 127 of file class.NodeXMLDBMapper.php.
References DATATYPE_IGNORE.
| & NodeXMLDBMapper::loadImpl | ( | $oid, | |
| $buildDepth, | |||
$buildAttribs = null, |
|||
$buildTypes = null |
|||
| ) |
Definition at line 134 of file class.NodeXMLDBMapper.php.
References BUILDDEPTH_INFINITE, BUILDDEPTH_SINGLE, PersistenceFacade\composeOID(), createObject(), DATATYPE_ELEMENT, PersistenceFacade\decomposeOID(), PersistenceFacade\getInstance(), getNodeDefinition(), startReadTransaction(), STATE_CLEAN, and WCMFException\throwEx().
Here is the call graph for this function:| & NodeXMLDBMapper::createImpl | ( | $type, | |
| $buildDepth, | |||
| $buildAttribs | |||
| ) |
Definition at line 232 of file class.NodeXMLDBMapper.php.
References BUILDDEPTH_INFINITE, BUILDDEPTH_MAX, BUILDDEPTH_REQUIRED, BUILDDEPTH_SINGLE, createObject(), PersistenceFacade\getInstance(), getNodeDefinition(), and WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::saveImpl | ( | & | $node | ) |
Definition at line 305 of file class.NodeXMLDBMapper.php.
References PersistenceFacade\getInstance(), PersistenceFacade\isValidOID(), PersistenceMapper\logAction(), startTransaction(), STATE_CLEAN, STATE_DIRTY, STATE_NEW, and WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::deleteImpl | ( | $oid, | |
$recursive = true |
|||
| ) |
Definition at line 380 of file class.NodeXMLDBMapper.php.
References BUILDDEPTH_SINGLE, PersistenceFacade\composeOID(), PersistenceFacade\decomposeOID(), PersistenceFacade\getInstance(), PersistenceMapper\isLogging(), PersistenceMapper\logAction(), startTransaction(), and WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::getOIDs | ( | $type, | |
$criteria = null, |
|||
$orderby = null, |
|||
| & | $pagingInfo | ||
| ) |
Definition at line 418 of file class.NodeXMLDBMapper.php.
References startReadTransaction().
Here is the call graph for this function:| NodeXMLDBMapper::loadObjects | ( | $type, | |
| $buildDepth, | |||
$criteria = null, |
|||
$orderby = null, |
|||
| & | $pagingInfo, | ||
$buildAttribs = null, |
|||
$buildTypes = null |
|||
| ) |
Definition at line 444 of file class.NodeXMLDBMapper.php.
References WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::getOrderBy | ( | ) |
Definition at line 451 of file class.NodeXMLDBMapper.php.
References WCMFException\throwEx().
Here is the call graph for this function:| NodeXMLDBMapper::startReadTransaction | ( | ) |
Start a non blocking read transaction
Definition at line 458 of file class.NodeXMLDBMapper.php.
References Log\debug(), and openDatabase().
Referenced by getOIDs(), and loadImpl().
Here is the call graph for this function:| NodeXMLDBMapper::startTransaction | ( | ) |
Definition at line 468 of file class.NodeXMLDBMapper.php.
References Log\debug(), and openDatabase().
Referenced by deleteImpl(), and saveImpl().
Here is the call graph for this function:| NodeXMLDBMapper::commitTransaction | ( | ) |
Definition at line 481 of file class.NodeXMLDBMapper.php.
References closeDatabase(), and Log\debug().
Referenced by setFilename().
Here is the call graph for this function:| NodeXMLDBMapper::rollbackTransaction | ( | ) |
Definition at line 494 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::openDatabase | ( | $lock = true | ) |
Open the XML database
| lock | True/False wether a lock is required or not |
Definition at line 501 of file class.NodeXMLDBMapper.php.
References Log\debug(), and WCMFException\throwEx().
Referenced by startReadTransaction(), and startTransaction().
Here is the call graph for this function:| NodeXMLDBMapper::closeDatabase | ( | ) |
Close the XML database
Definition at line 519 of file class.NodeXMLDBMapper.php.
References Log\debug().
Referenced by commitTransaction().
Here is the call graph for this function:| & NodeXMLDBMapper::createObject | ( | $type, | |
$oid = null |
|||
| ) |
TEMPLATE METHODS Subclasses will override these to define their Node type. Factory method for the supported object type.
| type | The type of object to create |
| oid | The object id (maybe null) |
Definition at line 537 of file class.NodeXMLDBMapper.php.
References WCMFException\throwEx().
Referenced by createImpl(), and loadImpl().
Here is the call graph for this function:| NodeXMLDBMapper::getNodeDefinition | ( | $type | ) |
Get the Node type definition.
| type | The type of the Node |
Definition at line 565 of file class.NodeXMLDBMapper.php.
Referenced by createImpl(), and loadImpl().
| NodeXMLDBMapper::$_filename = '' |
Definition at line 56 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::$_doctype = '' |
Definition at line 57 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::$_dtd = '' |
Definition at line 58 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::$_db = null |
Definition at line 60 of file class.NodeXMLDBMapper.php.
| NodeXMLDBMapper::$_inTransaction = false |
Definition at line 62 of file class.NodeXMLDBMapper.php.