EmbedGoogleMapBuilderFactory

The Embed Google Map EmbedGoogleMapBuilderFactory class.

Defined (1)

The class is defined in the following location(s).

/embed_google_map.php  
  1. class EmbedGoogleMapBuilderFactory { 
  2. public static function createBuilder($version) { 
  3. if(strcmp($version, 'classic') == 0) { 
  4. return new EmbedGoogleMapClassicHtmlBuilder; 
  5. } else if(strcmp($version, 'new') == 0) { 
  6. return new EmbedGoogleMapNewHtmlBuilder; 
  7. } else if(strcmp($version, 'embed') == 0) { 
  8. return new EmbedGoogleMapEmbedAPIHtmlBuilder; 
  9. return new EmbedGoogleMapNewHtmlBuilder;