'en_US', 'direction' => 'ltr', 'charset' => 'utf-8'); /** * CSS stylesheet to link to * @var string */ private $stylesheet; /** * Realm; the extra bit added to the title * @var string */ private $realm = 'BSPrinterOutput'; // ################################################################### /** * Constructor (private) */ private function __construct() {} // ################################################################### /** * Returns the singleton instance * * @return BSPrinter Singleton instance */ private static function _Instance() { if (!self::$instance) { self::$instance = new BSPrinter(); } return self::$instance; } // ################################################################### /** * Returns the realm * * @return string Realm */ public static function GetRealm() { return self::_Instance()->realm; } // ################################################################### /** * Sets the realm * * @param string Realm */ public static function SetRealm($realm) { self::_Instance()->realm = $realm; } // ################################################################### /** * Returns the language array * * @return array Language array */ public static function GetLanguageInformation() { return self::_Instance()->language; } // ################################################################### /** * Sets the language array information * * @param array Language array */ public static function SetLanguageInformation($lang) { self::_Instance()->language = $lang; } // ################################################################### /** * Returns the stylesheet URL * * @return string Stylesheet link */ public static function GetStylesheet() { return self::_Instance()->stylesheet; } // ################################################################### /** * Sets the path to the CSS style sheet * * @param string Path */ public static function SetStylesheet($stylesheet) { self::_Instance()->stylesheet = $stylesheet; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>