public static function getInstance() { if (self::$instance === null) { self::$instance = new SessionRegistry(); } return self::$instance; }
public static function instance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
public function init_pcs_stylesheet() { $code = SessionRegistry::instance()->getStyleCode(); if (in_array($code, array('prospective', 'current', 'staff'))) { $this->pcs_stylesheet = "<link rel='stylesheet' type='text/css'\n\t\t\t\thref='/css/{$code}.css' />\n"; } else { $this->pcs_stylesheet = ''; } }