/** * Get singleton instance */ public static function getInstance() { if (self::$instance) { return self::$instance; } return self::$instance = new ilCASSettings(); }
/** * Constructor * * @access public * @param int object auth ref_id * */ public function __construct($a_auth_ref_id) { global $lng, $ilCtrl, $tpl, $ilTabs; $this->ctrl = $ilCtrl; $this->tabs_gui = $ilTabs; $this->lng = $lng; $this->lng->loadLanguageModule('registration'); $this->lng->loadLanguageModule('auth'); $this->tpl = $tpl; $this->ref_id = $a_auth_ref_id; $this->settings = ilCASSettings::getInstance(); }