*/
private $title;
+ /**
+ * Navigation object
+ * @var BSPrinterNavigation
+ */
+ private $navigator;
+
// ###################################################################
/**
* Constructor
return $obj->newInstanceArgs($args);
}
+ /**
+ * Sets the navigation object
+ *
+ * @param BSPrinterNavigation Navigator
+ */
+ public function setNavigation(BSPrinterNavigation $nav)
+ {
+ $this->navigator = $nav;
+ }
+
+ /**
+ * Returns the printer navigation object
+ *
+ * @return BSPrinterNavigation Navigation object
+ */
+ public function getNavigation()
+ {
+ return $this->navigatior;
+ }
+
// ###################################################################
/**
* Creates a redirect to another page; constructs the header and footer
echo "\n\t<link rel=\"stylesheet\" href=\"" . BSPrinter::get_stylesheet() . "\" />";
echo "\n</head>\n<body>\n";
- if (BSApp::GetType('PrinterNavigation') AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
+ if ($this->navigator AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
{
- echo BSApp::GetType('PrinterNavigation')->constructHeaderHtml();
+ echo $this->navigator->constructHeaderHtml();
}
echo $this->_paintChildren();
- if (BSApp::GetType('PrinterNavigation') AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
+ if ($this->navigator AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
{
- echo BSApp::GetType('PrinterNavigation')->constructFooterHtml();
+ echo $this->navigator->constructFooterHtml();
}
$copyright = "\n<br />\n<p align=\"center\" class=\"copyright\">\n\t" . BSPrinter::get_copyright() . "\n</p>";