/** * Registry instance * * @return void */ public function registry() { $this->settings = CTM_Registry::fetchSettings(); $this->vars = CTM_Registry::fetchVariables(); $this->output = CTM_Registry::fetchOutput(); $this->lang = CTM_Registry::fetchLanguage(); $this->functions = CTM_Registry::fetchFunctions(); $this->email = CTM_Registry::fetchEmail(); $this->mailer = $GLOBALS['CTM_Mailer']; $this->DB = CTM_Registry::fetchDriver(); $this->URLData = CTM_Registry::fetchURLData(); }
/** * Registry instance * * @return void */ public function registry() { $this->settings = CTM_Registry::fetchSettings(); $this->vars = CTM_Registry::fetchVariables(); $this->output = CTM_Registry::fetchOutput(); $this->lang = CTM_Registry::fetchLanguage(); $this->functions = CTM_Registry::fetchFunctions(); $this->DB = CTM_Registry::fetchDriver(); $this->section = CTM_Registry::fetchSection(); if (count(CTM_Registry::$libs) > 0) { foreach (CTM_Registry::$libs as $key => $class) { $this->{$key} = $class; } } }