| <?php |
| /** |
| * File containing the ezcTreeMemoryDataStore class. |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 |
| * @version //autogentag// |
| * @filesource |
| * @package Tree |
| */ |
| |
| /** |
| * ezcTreeMemoryDataStore implements storing of node data as part of the node |
| * itself. It stores this node information in objects of the ezcTreeMemoryNode |
| * class. |
| * |
| * @package Tree |
| * @version //autogentag// |
| */ |
| class ezcTreeMemoryDataStore implements ezcTreeDataStore |
| { |
| /** |
| * Deletes the data for the node $node from the data store. |
| * |
| * @param ezcTreeNode $node |
| public function deleteDataForNode( ezcTreeNode $node ) |
| { |
| // This is a no-op as the data is part of the node |
| } |
| */ |
| |
| /** |
| * Deletes the data for all the nodes in the node list $nodeList. |
| * |
| * @param ezcTreeNodeList $nodeList |
| */ |
| public function deleteDataForNodes( ezcTreeNodeList $nodeList ) |
| { |
| // This is a no-op as the data is part of the nodes |
| } |
| |
| /** |
| * Deletes the data for all the nodes in the store. |
| */ |
| public function deleteDataForAllNodes() |
| { |
| // This is a no-op as the data is part of the nodes |
| } |
| |
| /** |
| * Retrieves the data for the node $node from the data store and assigns it |
| * to the node's 'data' property. |
| * |
| * @param ezcTreeNode $node |
| */ |
| public function fetchDataForNode( ezcTreeNode $node ) |
| { |
| // This is a no-op as the data is part of the node |
| } |
| |
| /** |
| * Retrieves the data for all the nodes in the node list $nodeList and |
| * assigns this data to the nodes' 'data' properties. |
| * |
| * @param ezcTreeNodeList $nodeList |
| */ |
| public function fetchDataForNodes( ezcTreeNodeList $nodeList ) |
| { |
| // This is a no-op as the data is part of the nodes |
| } |
| |
| /** |
| * Stores the data in the node to the data store. |
| * |
| * @param ezcTreeNode $node |
| */ |
| public function storeDataForNode( ezcTreeNode $node ) |
| { |
| // This is a no-op as the data is part of the node |
| } |
| } |
| ?> |