*/
var $registry = null;
+ /**
+ * Global links that are used for admin home, logout, etc.
+ * @var array
+ * @access private
+ */
+ var $toplinks = array();
+
+ /**
+ * Navigational structure
+ * @var array
+ * @access private
+ */
+ var $structure = array();
+
// ###################################################################
/**
* Constructor
$this->__construct($registry);
}
+ // ###################################################################
+ /**
+ * Adds a global link to the array; these cannot be removed once added
+ *
+ * @access public
+ *
+ * @param string Link text
+ * @param string HREF of the URL
+ */
+ function add_top_link($text, $href)
+ {
+ $this->toplinks["$href"] = $text;
+ }
+
// ###################################################################
/**
* Generates the header HTML that is called in ISSO.Printer->page_start()
*/
function generate_header_html()
{
+ $output = '<!-- navigation start -->' . "\n\n";
+
+ $output2 = array();
+ foreach ($this->toplinks AS $href => $text)
+ {
+ $output2[] = '<a href="' . $href . '" class="nav_toplink">' . $text . '</a>';
+ }
+
+ $output .= implode(' • ', $output2);
+
return $output;
}
}