Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • EventListener
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • Attribution
  • Authority
  • Dimension
  • Extent
  • Identifier
  • IdentifierAuthority
  • LegendUrl
  • MetadataUrl
  • MinMax
  • OnlineResource
  • RequestInformation
  • Style
  • WmsCapabilitiesParser
  • WmsCapabilitiesParser111
  • WmsCapabilitiesParser130
  • WmsInstanceConfiguration
  • WmsInstanceConfigurationOptions
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\WmsBundle\Component;
 4: 
 5: /**
 6:  * MetadataUrl class.
 7:  *
 8:  * @author Paul Schmidt
 9:  */
10: class MetadataUrl
11: {
12: 
13:     /**
14:      * ORM\Column(type="object", nullable=true)
15:      */
16:     //@TODO Doctrine bug: "protected" replaced with "public"
17:     public $onlineResource;
18: 
19:     /**
20:      * ORM\Column(type="string", nullable=true)
21:      */
22:     //@TODO Doctrine bug: "protected" replaced with "public"
23:     public $type;
24: 
25:     /**
26:      * Creates a MetadataUrl object from parameters
27:      * @param array $parameters
28:      */
29:     public static function create($parameters)
30:     {
31:         $obj = new MetadataUrl();
32:         if(isset($parameters["type"]))
33:         {
34:             $this->type = $parameters["type"];
35:         }
36:         if(isset($parameters["url"]))
37:         {
38:             $this->url = $parameters["url"];
39:         }
40:         return $obj;
41:     }
42: 
43:     /**
44:      * Get type
45:      * 
46:      * @return string
47:      */
48:     public function getType()
49:     {
50:         return $this->type;
51:     }
52: 
53:     /**
54:      * Set type
55:      * @param string $value 
56:      * @return MetadataUrl
57:      */
58:     public function setType($value)
59:     {
60:         $this->type = $value;
61:         return $this;
62:     }
63: 
64:     /**
65:      * Get onlineResource
66:      * 
67:      * @return OnlineResource
68:      */
69:     public function getOnlineResource()
70:     {
71:         return $this->onlineResource;
72:     }
73: 
74:     /**
75:      * Set onlineResource
76:      * @param OnlineResource $onlineResource
77:      * @return MetadataUrl
78:      */
79:     public function setOnlineResource(OnlineResource $onlineResource)
80:     {
81:         $this->onlineResource = $onlineResource;
82:         return $this;
83:     }
84: 
85:     /**
86:      * Get object as array
87:      * 
88:      * @return array
89:      */
90:     public function toArray()
91:     {
92:         return array(
93:             "url" => $this->url,
94:             "type" => $this->type
95:         );
96:     }
97: 
98: }
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0