Path

ez components / documentation / api reference / latest / tree


eZ Components latest

Tree: ezcTreeXmlInternalDataStore

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcTreeXmlInternalDataStore

ezcTreeXmlInternalDataStore is an implementation of a tree node data store that stores node information in child elements of the XML elements containing the tree nodes. [source]

Implemented Interfaces

Member Variables

protected DOMDocument $dom
Contains the DOM representing this tree this data store stores data for.

Method Summary

public void deleteDataForAllNodes( )
Deletes the data for all the nodes in the store.
public void deleteDataForNodes( $nodeList )
Deletes the data for all the nodes in the node list $nodeList.
public void fetchDataForNode( $node )
Retrieves the data for the node $node from the data store and assigns it to the node's 'data' property.
public void fetchDataForNodes( $nodeList )
Retrieves the data for all the nodes in the node list $nodeList and assigns this data to the nodes' 'data' properties.
public void setDomTree( $dom )
Associates the DOM tree for which this data store stores data for with this store.
public void storeDataForNode( $node )
Stores the data in the node to the data store.

Methods

deleteDataForAllNodes

void deleteDataForAllNodes( )
Deletes the data for all the nodes in the store.

deleteDataForNodes

void deleteDataForNodes( ezcTreeNodeList $nodeList )
Deletes the data for all the nodes in the node list $nodeList.

Parameters

Name Type Description
$nodeList ezcTreeNodeList  

fetchDataForNode

void fetchDataForNode( ezcTreeNode $node )
Retrieves the data for the node $node from the data store and assigns it to the node's 'data' property.

Parameters

Name Type Description
$node ezcTreeNode  

fetchDataForNodes

void fetchDataForNodes( ezcTreeNodeList $nodeList )
Retrieves the data for all the nodes in the node list $nodeList and assigns this data to the nodes' 'data' properties.

Parameters

Name Type Description
$nodeList ezcTreeNodeList  

setDomTree

void setDomTree( $dom )
Associates the DOM tree for which this data store stores data for with this store.

Parameters

Name Type Description
$dom DOMDocument  

storeDataForNode

void storeDataForNode( ezcTreeNode $node )
Stores the data in the node to the data store.

Parameters

Name Type Description
$node ezcTreeNode  

Last updated: Mon, 21 Dec 2009