+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
* All nodes of the tree (including root and leaf node) contain the following properties
* Name - what is the node name ?
* Children - who are it's children
- * Data - any other auxillary data
+ * Data - any other auxiliary data
*
*
* Internally all nodes are an array with the following keys
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id: $
*
*/
class CRM_Utils_Tree {
/**
- * Store the tree information as a string or array
+ * Store the tree information as a string or array.
* @var string|array
*/
private $tree;
}
/**
- * Find a node that matches the given string
+ * Find a node that matches the given string.
*
* @param string $name
* Name of the node we are searching for.
}
/**
- * Create a node
+ * Create a node.
*
* @param string $name
*
}
/**
- * Add node
+ * Add node.
*
* @param string $parentName
* Name of the parent ?.
}
/**
- * Add Data
+ * Add Data.
*
* @param string $parentName Name of the parent ?.
* @param string $childName - key to be used (optional)
}
/**
- * Get Tree
+ * Get Tree.
*
* @return tree
*/
}
/**
- * Print the tree
+ * Print the tree.
*
* @return void
*/
public function display() {
print_r($this->tree);
}
+
}