/** * This function is a singleton method used to instantiate the EEM_Event object * * @access public * @param string $timezone * @return EEM_Event */ public static function instance($timezone = NULL) { // check if instance of EEM_Event already exists if (!self::$_instance instanceof EEM_Event) { // instantiate Espresso_model self::$_instance = new self($timezone); } //we might have a timezone set, let set_timezone decide what to do with it self::$_instance->set_timezone($timezone); // EEM_Event object return self::$_instance; }