1 | <?php |
||
11 | class property implements node |
||
12 | { |
||
13 | public $link; |
||
14 | |||
15 | public $noidlink; |
||
16 | |||
17 | /** |
||
18 | * DB column name (defaults to $this->name) |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public $field; |
||
23 | |||
24 | /** |
||
25 | * Does this field point to a parent |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public $parentfield; |
||
30 | |||
31 | /** |
||
32 | * Field name for MdgSchema object |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $name; |
||
37 | |||
38 | /** |
||
39 | * Helpttext |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | public $description; |
||
44 | |||
45 | /** |
||
46 | * Should an index be created for the column |
||
47 | * |
||
48 | * @var boolean |
||
49 | */ |
||
50 | public $index = false; |
||
51 | |||
52 | /** |
||
53 | * Field type as written in XML |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | public $type; |
||
58 | |||
59 | /** |
||
60 | * DB field type (defaults to $this->type) |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | public $dbtype; |
||
65 | |||
66 | /** |
||
67 | * Are values unique? |
||
68 | * |
||
69 | * @var boolean |
||
70 | */ |
||
71 | public $unique = false; |
||
72 | |||
73 | /** |
||
74 | * Parent type |
||
75 | * |
||
76 | * @var type |
||
77 | */ |
||
78 | private $mgdschematype; |
||
79 | |||
80 | 18 | public function __construct(type $parent, $name, $type) |
|
90 | |||
91 | 5 | public function get_parent() |
|
95 | |||
96 | 17 | public function set($name, $value) |
|
118 | |||
119 | 15 | public function set_multiple(array $attributes) |
|
125 | } |
||
126 |