File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
arrayRelationalTree
—
Name | Description |
---|---|
$arrStructure | n/a |
[$strIDField = 'id'] | n/a |
[$strParentIDField = 'parent_id'] | n/a |
[$strChildrenKey = 'children'] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$arrStructure = array(0 => 'foo', 1 => 'bar');
$strIDField = 'id';
$strParentIDField = 'parent_id';
$strChildrenKey = 'children';
//Call the function arrayRelationalTree with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> arrayRelationalTree($arrStructure, $strIDField, $strParentIDField, $strChildrenKey);