Skip to content
Aydan Coskun edited this page Nov 29, 2019 · 1 revision

TTTree

  • Class name: TTTree
  • Namespace:

Methods

FormatArray

array TTTree::FormatArray($nodes, boolean $include_root)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed
  • $include_root boolean

flattenArray

array TTTree::flattenArray($nodes)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed

getElementFromNodes

array TTTree::getElementFromNodes($nodes, string $key)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed
  • $key string

getAllChildren

array TTTree::getAllChildren($nodes, string $parent_id)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed
  • $parent_id string

sortByName

integer TTTree::sortByName($a, $b)
  • Visibility: public
  • This method is static.

Arguments

  • $a mixed
  • $b mixed

createNestedArrayWithDepth

array TTTree::createNestedArrayWithDepth($nodes, string $parent_id, integer $depth)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed
  • $parent_id string
  • $depth integer

Clone this wiki locally