/** * Singleton function that returns the global class object. * * @return object * CampTemplate */ public static function singleton() { if (!isset(self::$m_instance)) { self::$m_instance = new CampTemplate(); } return self::$m_instance; }