1: <?php
2:
3: class FieldSetDefinition {
4:
5: public function __construct($lines, $options = array()) {
6: $this->lines = $lines;
7: $this->options = array_merge(array(
8: 'listAssociation' => false,
9: 'label' => false,
10: 'legend' => false,
11: 'accessObject' => false,
12: 'readAccessObject' => false,
13: 'accessObjectType' => false,
14: ), $options);
15:
16: }
17:
18: public function getAccessObject() {
19: return $this->options['accessObject'];
20: }
21:
22: public function getAccessObjectType() {
23: return $this->options['accessObjectType'];
24: }
25:
26: public function getListAssociation() {
27: return $this->options['listAssociation'];
28: }
29:
30: public function getLabel() {
31: foreach (array('label', 'legend') as $option) {
32: if ($this->options[$option]) {
33: return $this->options[$option];
34: }
35: }
36: return false;
37: }
38:
39: public function getLines() {
40: return $this->lines;
41: }
42:
43:
44: /**
45: *
46: * @return array
47: */
48: public function getOptions() {
49: return $this->options;
50: }
51:
52: }
53: