$name)) { $class = '\Model\\'.ucfirst($name); $registry->$name = new $class($registry); } return $registry->shared($name); } /** * Check if the page is requested through HTTPS * * Note: IIS return the value 'off' and other web servers an empty value when it's not HTTPS * * @static * @access public * @return boolean */ public static function isHTTPS() { return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== '' && $_SERVER['HTTPS'] !== 'off'; } }