Definition at line 65 of file status_tree.inc.
◆ buildStatusTrees()
StatusTrees::buildStatusTrees |
( |
| ) |
|
Definition at line 86 of file status_tree.inc.
88 if(count($this->items) == 0)
return;
92 foreach($this->statusCategories as $statusTitle => $status)
94 if (array_key_exists($status, $this->items))
96 $tree =
new TreeControl(
"statusTree$status",
"",
"tree",
false, $this->width);
98 $tree->indent =
"0px";
100 $category = $this->items[$status];
102 foreach($category as $item)
104 $pkName = $item->getPrimaryKey();
106 $node = $this->
getNode($item, $pkName);
108 if($this->statusBlockView)
114 $subNode =
new TreeNode(
"block_{$item->$pkName}",
117 $subNode->leafStyle =
"";
118 if($this->statusBlockHandler)
120 $subNode->onDemand =
"{$this->statusBlockHandler}?$pkName={$item->$pkName}";
122 $node->add($subNode);
The TreeControl provides a class that can be used to generate dynamic tree controls for use in PHP fo...
TreeNode represents a node in the tree.
◆ drawView()
StatusTrees::drawView |
( |
| ) |
|
Definition at line 152 of file status_tree.inc.
157 if (count($this->items) > 0)
159 foreach($this->statusCategories as $statusTitle => $status)
161 if (array_key_exists($status, $this->items))
163 echo
"<h3>$statusTitle</h3>\n";
164 $this->trees[$status]->writeHTML();
170 echo
"<br/><em>$this->emptyMessage</em><br/>";
◆ getNode()
StatusTrees::getNode |
( |
|
$item, |
|
|
|
$pkName |
|
) |
| |
Definition at line 136 of file status_tree.inc.
138 $node =
new TreeNode(
"status_{$item->$pkName}", $item->getTitle(),
139 null,
false,
"tree_list_closed",
"tree_list_open");
140 $node->leafStyle =
"tree_list_open";
◆ StatusTrees()
StatusTrees::StatusTrees |
( |
|
$items, |
|
|
|
$statusCategories, |
|
|
|
$statusBlock |
|
) |
| |
Definition at line 75 of file status_tree.inc.
80 if(preg_match(
'/\//', $statusBlock))
81 $this->statusBlockHandler = $statusBlock;
83 $this->statusBlockView = $statusBlock;
◆ writeScript()
StatusTrees::writeScript |
( |
| ) |
|
◆ $emptyMessage
StatusTrees::$emptyMessage = "" |
◆ $items
◆ $statusBlockHandler
StatusTrees::$statusBlockHandler |
◆ $statusBlockView
StatusTrees::$statusBlockView |
◆ $statusCategories
StatusTrees::$statusCategories |
◆ $trees
◆ $width
StatusTrees::$width = 500 |
The documentation for this class was generated from the following file: