initial commit
[namibia] / module / Valuation / src / Valuation / DataBin / XmlRpc.php
1 <?php
2 namespace Valuation\DataBin;
3
4
5
6 /**
7  * Manage XmlRpc clients.
8  * @author andre.fourie
9  */
10 class XmlRpc extends \Workspace\Service\DataBin
11 {
12
13         /**
14          * @var array
15          */
16         protected $meta = array(
17                         'Base'        => 'XmlRpc',
18                         'DatasetName' => '',
19                         'Entity'      => '\Valuation\Entity\XmlRpc',
20                         'References'  => array(),
21                         'Dependants'  => array()
22         );
23         /**
24          * @var array
25         */
26         protected $metaSelectList = array(
27                         'Type'          => 'SelectList',
28                         'Contract'      => 'Recurring',
29                         'RequiredInput' => array(),
30                         'OptionalInput' => array(
31                                         'Filter' => array(
32                                                         'clientName'       => 'String50'
33                                         )
34                         ),
35                         'Filter'   => array(),
36                         'Label'    => array(
37                                 'Format' => '[clientName]',
38                                 'Fields' => array('clientName')
39                         )
40         );
41         /**
42          * @var array
43         */
44         protected $metaGrid = array(
45                         'Type'          => 'Grid',
46                         'Contract'      => 'Recurring',
47                         'Options'       => array(),
48                         'RequiredInput' => array(),
49                         'OptionalInput' => array(
50                                         'Grid' => array(
51                                                         'NumberOfRecords' => 'Integer',
52                                                         'Page'            => 'Integer',
53                                                         'Filter'          => 'Array',
54                                                         'OrderBy'         => 'Array',
55                                         )
56                         ),
57                         'Base'            => 'xmlRpc',
58                         'NumberOfRecords' => 10,
59                         'Query'           => 'SELECT [SELECTION]
60                                                                 FROM \Valuation\Entity\XmlRpc xmlRpc
61                                                                 [WHERE] [ORDER]',
62                         'Selection'       => 'xmlRpc',
63                         'Filter'          => array(),
64                         'OrderBy'         => array('xmlRpc.clientName' => 'ASC'),
65                         'Fields'          => array(
66                                                                         'id',
67                                                                         'clientName',
68                                                                         'clientApiId',
69                                                                         'callbackUrl',
70                                                                         'triggerSentToSales',
71                                                                         'created' => 'DateTime',
72                                                                         'archived'
73                                                                 )
74         );
75         /**
76          * @var array
77         */
78         protected $metaCreate = array(
79                         'Type'          => 'Create',
80                         'Contract'      => 'UseOnce',
81                         'Expand'        => array(),
82                         'RequiredInput' => array(
83                                         'XmlRpc' => array(
84                                                         'clientName'                    => 'String50',
85                                         'callbackUrl'                   => 'String250',
86                                                         'triggerSentToSales'    => 'Boolean',
87                                                         'password'                              => 'String50'
88                                         )
89                         ),
90                         'OptionalInput' => array()
91         );
92         /**
93          * @var array
94         */
95         protected $metaUpdate = array(
96                         'Type'          => 'Update',
97                         'Contract'      => 'UseOnce',
98                         'Expand'        => array(),
99                         'RequiredInput' => array(
100                                         'XmlRpc' => array(
101                                                         'clientName'                    => 'String50',
102                                         'callbackUrl'                   => 'String250',
103                                                         'triggerSentToSales'    => 'Boolean'
104                                         )
105                         ),
106                         'OptionalInput' => array(
107                                         'XmlRpc' => array(
108                                                         'password' => 'String50'
109                                         )
110                         )
111         );
112         /**
113          * @var array
114         */
115         protected $metaDelete = array(
116                         'Type'          => 'Delete',
117                         'Contract'      => 'UseOnce',
118                         'Expand'        => array(),
119                         'RequiredInput' => array(),
120                         'OptionalInput' => array()
121         );
122         /**
123          * @var array
124         */
125         protected $metaUnDelete = array(
126                         'Type'          => 'UnDelete',
127                         'Contract'      => 'UseOnce',
128                         'Expand'        => array(),
129                         'RequiredInput' => array(),
130                         'OptionalInput' => array()
131         );
132
133
134
135 }