1: <?php
2:
3: namespace Mapbender\WmsBundle\Component;
4:
5: use Mapbender\CoreBundle\Component\InstanceConfigurationOptions;
6:
7: /*
8: * To change this template, choose Tools | Templates
9: * and open the template in the editor.
10: */
11:
12: /**
13: * Description of WmsInstanceConfiguration
14: *
15: * @author Paul Schmidt
16: */
17: class WmsInstanceConfigurationOptions extends InstanceConfigurationOptions
18: {
19:
20: /**
21: * ORM\Column(type="string", nullable=true)
22: */
23: //@TODO Doctrine bug: "protected" replaced with "public"
24: public $tiled;
25:
26: /**
27: * ORM\Column(type="array", nullable=true)
28: */
29: //@TODO Doctrine bug: "protected" replaced with "public"
30: public $bbox;
31:
32: /**
33: * Sets a tiled
34: *
35: * @param boolean $tiled source tiled
36: * @return WmsInstanceConfiguration
37: */
38: public function setTiled($tiled){
39: $this->tiled = $tiled;
40: return $this;
41: }
42:
43: /**
44: * Returns a tiled
45: *
46: * @return boolean tiled
47: */
48: public function getTiled(){
49: return $this->tiled;
50: }
51:
52: /**
53: * Sets a bbox
54: *
55: * @param array $bbox source bbox
56: * @return WmsInstanceConfiguration
57: */
58: public function setBbox($bbox){
59: $this->bbox = $bbox;
60: return $this;
61: }
62:
63: /**
64: * Returns a bbox
65: *
66: * @return array bbox
67: */
68: public function getBbox(){
69: return $this->bbox;
70: }
71:
72: /**
73: *
74: * @return array
75: */
76: public function toArray()
77: {
78: return array(
79: "url" => $this->url,
80: "proxy" => $this->proxy,
81: "visible" => $this->visible,
82: "format" => $this->format,
83: "info_format" => $this->infoformat,
84: "transparent" => $this->transparency,
85: "opacity" => $this->opacity,
86: "tiled" => $this->tiled,
87: "bbox" => $this->bbox
88: );
89: }
90: }
91:
92: ?>
93: