registry =& $registry; } // ################################################################### /** * (PHP 4) Constructor */ function Printer_Navigation(&$registry) { $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() * to setup the navigation frame * * @access public * * @return string Generated HTML content */ function generate_header_html() { $output = '' . "\n\n"; $output2 = array(); foreach ($this->toplinks AS $href => $text) { $output2[] = '' . $text . ''; } $output .= implode(' • ', $output2); return $output; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>