wCMF
3.6
|
Public Member Functions | |
getErrorMsg () | |
getRootNodeName () | |
getRootOID () | |
GetNodeData ($oid, $elementName) | |
GetChildData ($oid) | |
GetOIDs ($nodeQuery) | |
InsertNode (&$node, $parentOID) | |
UpdateNode (&$node) | |
RemoveNode ($oid) | |
GetNextInsertId () | |
_GetNodeData ($oid, $elementName) | |
_GetChildData ($oid) | |
_InsertNode (&$node, $parentOID) | |
_UpdateNode (&$node) | |
_RemoveNode ($oid) | |
_CheckAction ($action) | |
_GetNodePath ($oid) | |
_GetTypes ($path) | |
_GetOID ($nodePath) | |
Public Attributes | |
$_errorMsg = '' | |
$_idName = 'id' | |
XMLUtil helps in using XML files as storage. XMLUtil is a subclass of CXmlDb that is customized for use with the wemove cms framework.
Definition at line 44 of file class.XMLUtil.php.
XMLUtil::getErrorMsg | ( | ) |
Get last error message.
Definition at line 53 of file class.XMLUtil.php.
References $_errorMsg.
XMLUtil::getRootNodeName | ( | ) |
Get the root node name.
Definition at line 61 of file class.XMLUtil.php.
References ROOT_NODE_NAME.
Referenced by _GetNodePath().
XMLUtil::getRootOID | ( | ) |
Get the object id of the root node.
Definition at line 69 of file class.XMLUtil.php.
References PersistenceFacade\composeOID(), and ROOT_NODE_NAME.
Referenced by _InsertNode().
XMLUtil::GetNodeData | ( | $oid, | |
$elementName | |||
) |
Load Node data.
oid | The OID of the Node to load the data for. |
elementName | The name of the DATATYPE_ELEMENT field of the Node (content will be mapped here). |
Definition at line 81 of file class.XMLUtil.php.
References _CheckAction(), and _GetNodeData().
XMLUtil::GetChildData | ( | $oid | ) |
Load Node child data.
oid | The OID of the Node to load the child data for. |
Definition at line 102 of file class.XMLUtil.php.
References _CheckAction(), and _GetChildData().
XMLUtil::GetOIDs | ( | $nodeQuery | ) |
Get Node OID from a XPath query.
nodeQuery | The XPath query. |
Definition at line 122 of file class.XMLUtil.php.
References _GetOID().
XMLUtil::InsertNode | ( | & | $node, |
$parentOID | |||
) |
Add a new Node to the Node with given parentOID.
Definition at line 137 of file class.XMLUtil.php.
References _CheckAction(), and _InsertNode().
XMLUtil::UpdateNode | ( | & | $node | ) |
Save a Node to the XmlDb.
node | The Node to save |
Definition at line 161 of file class.XMLUtil.php.
References _CheckAction(), and _UpdateNode().
XMLUtil::RemoveNode | ( | $oid | ) |
Remove a Node from the XmlDb.
oid | The OID of the Node to remove |
Definition at line 185 of file class.XMLUtil.php.
References _CheckAction(), and _RemoveNode().
XMLUtil::GetNextInsertId | ( | ) |
Get the next record id.
Definition at line 208 of file class.XMLUtil.php.
Referenced by _InsertNode().
XMLUtil::_GetNodeData | ( | $oid, | |
$elementName | |||
) |
Internal version of GetNodeData.
oid | The OID of the Node to load the data for. |
elementName | The name of the DATATYPE_ELEMENT field of the Node (content will be mapped here). |
Definition at line 243 of file class.XMLUtil.php.
References $_idName, _GetNodePath(), and _GetTypes().
Referenced by GetNodeData().
XMLUtil::_GetChildData | ( | $oid | ) |
Internal version of GetChildData.
oid | The OID of the Node to load the child data for. |
Definition at line 270 of file class.XMLUtil.php.
References $_idName, _GetNodePath(), and _GetTypes().
Referenced by GetChildData().
XMLUtil::_InsertNode | ( | & | $node, |
$parentOID | |||
) |
Internal version of InsertNode.
Definition at line 299 of file class.XMLUtil.php.
References $_idName, _GetNodePath(), PersistenceFacade\composeOID(), DATATYPE_ATTRIBUTE, DATATYPE_ELEMENT, PersistenceFacade\decomposeOID(), GetNextInsertId(), and getRootOID().
Referenced by InsertNode().
XMLUtil::_UpdateNode | ( | & | $node | ) |
Internal version of UpdateNode.
node | The Node to save |
Definition at line 347 of file class.XMLUtil.php.
References _GetNodePath(), DATATYPE_ATTRIBUTE, and DATATYPE_ELEMENT.
Referenced by UpdateNode().
XMLUtil::_RemoveNode | ( | $oid | ) |
Internal version of RemoveNode.
oid | The OID of the Node to remove |
Definition at line 380 of file class.XMLUtil.php.
References _GetNodePath().
Referenced by RemoveNode().
XMLUtil::_CheckAction | ( | $action | ) |
Check if execution of an action is possible.
action | The action to execute |
Definition at line 393 of file class.XMLUtil.php.
Referenced by GetChildData(), GetNodeData(), InsertNode(), RemoveNode(), and UpdateNode().
XMLUtil::_GetNodePath | ( | $oid | ) |
Get the path to a Node.
oid | The OID of the Node |
Definition at line 419 of file class.XMLUtil.php.
References PersistenceFacade\decomposeOID(), and getRootNodeName().
Referenced by _GetChildData(), _GetNodeData(), _InsertNode(), _RemoveNode(), and _UpdateNode().
XMLUtil::_GetTypes | ( | $path | ) |
Get the Node types contained in a path.
path | The path to get the types for |
Definition at line 439 of file class.XMLUtil.php.
Referenced by _GetChildData(), _GetNodeData(), and _GetOID().
XMLUtil::_GetOID | ( | $nodePath | ) |
Get Node OID from a path.
nodePath | The path to the Node |
Definition at line 450 of file class.XMLUtil.php.
References $_idName, _GetTypes(), and PersistenceFacade\composeOID().
Referenced by GetOIDs().
XMLUtil::$_errorMsg = '' |
Definition at line 46 of file class.XMLUtil.php.
Referenced by getErrorMsg().
XMLUtil::$_idName = 'id' |
Definition at line 47 of file class.XMLUtil.php.
Referenced by _GetChildData(), _GetNodeData(), _GetOID(), and _InsertNode().