Tribe__Events__JSON_LD__Event::instance( $name = null )

On PHP 5.2 the child class doesn’t get spawned on the Parent one, so we don’t have access to that information on the other side unless we pass it around as a param so we throw __CLASS__ to the parent::instance() method to be able to spawn new instance of this class and save on the parent::$instances variable.

Contents


Return

(Tribe__Events__JSON_LD__Event)


Top ↑

Source

File: src/Tribe/JSON_LD/Event.php

	public static function instance( $name = null ) {
		return parent::instance( __CLASS__ );
	}