FastTree - staffcheck/api GitHub Wiki

FastTree

  • Class name: FastTree
  • Namespace:

Properties

$db

public mixed $db = NULL
  • Visibility: public

$table

public mixed $table = 'fast_tree'
  • Visibility: public

$tree_id

public mixed $tree_id
  • Visibility: public

$spacer

public mixed $spacer
  • Visibility: public

Methods

__construct

mixed FastTree::__construct(null $options)

FastTree constructor.

  • Visibility: public

Arguments

  • $options null

getTree

integer FastTree::getTree()
  • Visibility: public

setTree

boolean FastTree::setTree(string $id)
  • Visibility: public

Arguments

  • $id string - UUID

_setupTree

boolean FastTree::_setupTree()
  • Visibility: public

getRootId

mixed FastTree::getRootId()
  • Visibility: public

getNode

boolean FastTree::getNode(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getLevel

boolean FastTree::getLevel(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getRightId

boolean FastTree::getRightId(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getLeftId

boolean FastTree::getLeftId(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getParentId

boolean FastTree::getParentId(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

rebuildTree

boolean FastTree::rebuildTree(boolean $object_id)
  • Visibility: public

Arguments

  • $object_id boolean

_rebuildTree

boolean FastTree::_rebuildTree(string $object_id, string $left_id)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $left_id string - UUID

getAllParents

boolean FastTree::getAllParents(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getChild

boolean FastTree::getChild(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getAllChildren

array|boolean FastTree::getAllChildren(string $object_id, boolean $recurse, integer $data_format)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $recurse boolean
  • $data_format integer

_getLeftAndRightIds

array|boolean FastTree::_getLeftAndRightIds(string $parent_id)
  • Visibility: public

Arguments

  • $parent_id string - UUID

insertGaps

boolean FastTree::insertGaps(string $parent_id)
  • Visibility: public

Arguments

  • $parent_id string - UUID

add

boolean FastTree::add(string $object_id, integer $parent_id)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $parent_id integer

getListSQL

string FastTree::getListSQL($array, null $ph)
  • Visibility: protected

Arguments

  • $array mixed
  • $ph null

delete

boolean FastTree::delete(string $object_id, boolean $recurse)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $recurse boolean

move

boolean FastTree::move(string $object_id, string $parent_id)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $parent_id string - UUID

edit

boolean FastTree::edit(string $object_id, string $new_object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $new_object_id string - UUID

FormatFlexArray

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

Arguments

  • $nodes mixed
  • $include_root boolean

FormatArray

array|boolean FastTree::FormatArray($nodes, string $type, boolean $include_root)
  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed
  • $type string
  • $include_root boolean
⚠️ **GitHub.com Fallback** ⚠️