/** * * @param boolean $pReload * @return Synerg_Model_Gamesessions */ public static function getInstance($pReload = FALSE) { if ($pReload || is_null(self::$_Instance)) { // process self::$_Instance = new self(); } return self::$_Instance; }
public function init() { if (!($this->_user = Model_Users::getInstance()->current_user())) { $params = array('error' => 'You must be logged in to play Syner-G'); $this->forward('index', 'index', NULL, $params); return FALSE; } $this->_active_session = Synerg_Model_Gamesessions::getInstance()->active_session(); return parent::init(); }