public function loadNodeInfo(AJXP_Node &$node, $parentNode = false, $details = false) { parent::loadNodeInfo($node, $parentNode, $details); if (!$node->isLeaf()) { $node->setLabel(rtrim($node->getLabel(), "/")); } }
public function loadNodeInfo(&$ajxpNode, $parentNode = false, $details = false) { parent::loadNodeInfo($ajxpNode, $parentNode, $details); if (!$ajxpNode->isRoot()) { // Retrieving stored details $originalNode = self::$output[$ajxpNode->getLabel()]; if (isset($originalNode["meta"])) { $meta = $originalNode["meta"]; } else { $meta = array(); } $label = $originalNode["label"]; if (!$ajxpNode->isLeaf()) { $meta["icon"] = "mime_empty.png"; } // Overriding display name with repository name $ajxpNode->setLabel($label); $ajxpNode->mergeMetadata($meta); } }