TwistPHP Documentation

buildRelationalTree

File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
Extends:

buildRelationalTree

Parameters

Name Type Description
$arrListarrayn/a
$arrParentsarrayn/a
$strIDFieldstringn/a
$strChildrenKeystringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$arrList = array(=> 'foo'=> 'bar');
$arrParents = array(=> 'foo'=> 'bar');
$strIDField 'foo';
$strChildrenKey 'foo';

//Call the function buildRelationalTree with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> buildRelationalTree($arrList$arrParents$strIDField$strChildrenKey);