42 $tree =
new TreeControl(
"items");
45 $tree->selectMode =
"navigation";
51 $sectionNode =
new TreeNode(
"section_{$section->section}",
$section->section,
null,
false,
"tree_node_closed",
"tree_node_open");
54 $contentByIdentifier = reindexList(
$content,
"identifier");
58 $category =
new TreeNode(
"content_type_".codify(
$section->section).
"_".codify(
$type),
$type,
null,
false,
"tree_node_closed",
"tree_node_open");
60 $categories[
$type] =
new TreeNode(
"category_".codify(
$section->section).
"_".codify(
$type),
$type,
null,
false,
"tree_node_closed",
"tree_node_open");
64 if (!array_key_exists($item->identifier, $contentByIdentifier))
continue;
66 $child =
new TreeNode(
"available[{$item->identifier}]", $item->identifier,
null,
false,
"plain_tree_closed",
"plain_tree_open",
"javascript:new LinkPicker().insertLink(\"".getLink(
$section, $item->identifier).
"\")");
67 $child->leafStyle =
"file_node_leaf";
69 $category->add($child);
72 $sectionNode->add($category);
75 $tree->add($sectionNode);
84 $url = (
$section->section ==
"/") ?
"/$identifier" :
"/{$section->section}/$identifier";
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
Section DataItem, defining the data model for sections within a site.
getLink($section, $identifier)
foreach($sections as $section) $script
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content