atkTreeNode atkTreeNode(
String
$name, [int
$flags = 0]
)
|
|
Constructor
Parameters:
|
String |
$name: |
Node name |
|
int |
$flags: |
Node flags |
Action "admin" handler method, we override this method because we don't want an add form when the flag NF_TREE_NO_ROOT_ADD. Because the add form is only used to add root elements.
Parameters:
Admin page displays records and the actions that can be performed on them (edit, delete) in a Treeview
Parameters:
void copyChildren(
string
$selector, [int
$parent = ""], [string
$mode = "copy"]
)
|
|
This is a recursive function to copy the children from a parent.
Parameters:
|
string |
$selector: |
Selector |
|
int |
$parent: |
Parent ID |
|
string |
$mode: |
The mode we're in |
Information Tags:
| Todo: | shouldn't we recursively call copyDb here? instead of ourselves |
void copyDb(
array
$record, [string
$mode = "copy"]
)
|
|
Copies a record and the Childs if there are any
Parameters:
|
array |
$record: |
The record to copy |
|
string |
$mode: |
The mode we're in (usually "copy") |
Redefinition of:
- atkNode::copyDb()
- Copy a record in the database.
void deleteChildren(
string
$selector, int
$parent
)
|
|
Recursive function whitch deletes all the child records of a parent
Parameters:
|
string |
$selector: |
Selector |
|
int |
$parent: |
Id of the parent |
void deleteDb(
string
$selector
)
|
|
delete record from the database also the childrecords.
todo: instead of delete, set the deleted flag.
Parameters:
|
string |
$selector: |
Selector |
Redefinition of:
- atkNode::deleteDb()
- Delete record(s) from the database.
void Fill_tree(
[tree
$tree = ""], [int
$level = 0]
)
|
|
Recursive funtion whitch fills an array with all the items of the tree.
DEPRECATED, use treeToArray instead.
Parameters:
|
tree |
$tree: |
Tree |
|
int |
$level: |
Level |
string getIcon(
string
$name
)
|
|
Returns the full path to a tree icon from the current theme
Parameters:
|
string |
$name: |
Name of the icon (for example "expand" or "leaf") |
API Tags:
| Return: | Path to the icon file |
void GraphTreeRender(
[bool
$showactions = true], [bool
$expandAll = false], [bool
$foldable = true]
)
|
|
Recursive funtion which fills an array with all the items of the tree.
Parameters:
|
bool |
$showactions: |
Show actions? |
|
bool |
$expandAll: |
Expand all leafs? |
|
bool |
$foldable: |
Is this tree foldable? |
void treeToArray(
[tree
$tree = ""], [int
$level = 0]
)
|
|
Recursive funtion whitch fills an array with all the items of the tree.
Parameters:
|
tree |
$tree: |
Tree |
|
int |
$level: |
Level |