initial commit
[namibia] / module / Location / src / Location / Service / Country.php
1 <?php
2 namespace Location\Service;
3
4
5
6 /**
7  * Manage country data.
8  * @author andre.fourie
9  */
10 class Country extends \Workspace\Service\DataBin
11 {
12
13         /**
14          * @var array
15          */
16         protected $meta = array(
17                         'Base'        => 'Country',
18                         'DatasetName' => 'countries',
19                         'Entity'      => '\Location\Entity\Country',
20                         'References'  => array(),
21                         'Dependants'  => array(
22                                         'Region' => '\Location\Entity\Region'
23                         )
24         );
25         /**
26          * @var array
27         */
28         protected $metaList = array(
29                         'Contract'      => 'Recurring',
30                         'RequiredInput' => array(),
31                         'OptionalInput' => array(
32                                         'Filter' => array(
33                                                         'name'        => 'String50',
34                                                         'isoCode'     => 'String2',
35                                                         'fipsCode'    => 'String2',
36                                                         'dailingCode' => 'Digit3'
37                                         )
38                         ),
39                         'Filter' => array(),
40                         'Fields' => array(
41                                 'name'
42                         ),
43                         'Expand' => array()
44         );
45         /**
46          * @var array
47         */
48         protected $metaSelectList = array(
49                         'Type'          => 'SelectList',
50                         'Contract'      => 'Recurring',
51                         'RequiredInput' => array(),
52                         'OptionalInput' => array(
53                                         'Filter' => array(
54                                                         'name'        => 'String50',
55                                                         'isoCode'     => 'String2',
56                                                         'fipsCode'    => 'String2',
57                                                         'dailingCode' => 'Digit3'
58                                         )
59                         ),
60                         'Filter'   => array(),
61                         'Label'    => array(
62                                 'Format' => '[name]',
63                                 'Fields' => array('name')
64                         )
65         );
66         /**
67          * @var array
68         */
69         protected $metaCreate = array(
70                         'Contract' => 'Recurring',
71                         'RequiredInput' => array(
72                                         'Country' => array(
73                                                         'name'    => 'String50'
74                                         )
75                         ),
76                         'OptionalInput' => array(
77                                         'Country' => array(
78                                                         'isoCode'     => 'String2',
79                                                         'fipsCode'    => 'String2',
80                                                         'dailingCode' => 'Digit3'
81                                         )
82                         )
83         );
84         /**
85          * @var array
86         */
87         protected $metaUpdate = array(
88                         'Contract' => 'UseOnce',
89                         'RequiredInput' => array(
90                                         'Country' => array(
91                                                         'name'    => 'String50'
92                                         )
93                         ),
94                         'OptionalInput' => array(
95                                         'Country' => array(
96                                                         'isoCode'     => 'String2',
97                                                         'fipsCode'    => 'String2',
98                                                         'dailingCode' => 'Digit3'
99                                         )
100                         )
101         );
102         /**
103          * @var array
104         */
105         protected $metaDelete = array(
106                         'Contract' => 'UseOnce'
107         );
108
109 }