1: <?php
2: namespace Mapbender\WmsBundle\Event;
3: use Symfony\Component\EventDispatcher\Event;
4:
5: class WmsIndexEvent extends Event {
6:
7: /**
8: * the List of Wms that was loaded
9: */
10: protected $wmsList;
11:
12: /**
13: * an array of additional columns that should be rendered
14: */
15: protected $columns;
16:
17:
18: public function __construct(){
19: $wmsList = array();
20: $columns = array();
21: }
22: /**
23: *
24: * @param type $wmsList
25: */
26: public function setWmsList($wmsList){
27: $this->wmsList = $wmsList;
28: }
29:
30: public function getWmsList(){
31: return $this->wmsList;
32: }
33:
34: public function addColumn($name, $data){
35: $this->columns[$name] = $data;
36: }
37:
38: public function getColumns(){
39: return $this->columns;
40: }
41:
42:
43:
44: }
45:
46: