initial commit
[namibia] / module / Valuation / src / Valuation / DataBin / XmlRpcRequestLog.php
1 <?php
2 namespace Valuation\DataBin;
3
4
5
6 /**
7  * Manage XmlRpc request logs.
8  * @author andre.fourie
9  */
10 class XmlRpcRequestLog extends \Workspace\Service\DataBin
11 {
12
13         /**
14          * @var array
15          */
16         protected $meta = array(
17                         'Base'        => 'XmlRpcRequestLog',
18                         'DatasetName' => '',
19                         'Entity'      => '\Valuation\Entity\XmlRpcRequestLog',
20                         'References'  => array(
21                                         'xmlRpcClient'  => '\Valuation\Entity\XmlRpc',
22                                         'valuation'     => '\Valuation\Entity\Valuation',
23                         ),
24                         'Dependants'  => array()
25         );
26         /**
27          * @var array
28         */
29         protected $metaGrid = array(
30                         'Type'          => 'Grid',
31                         'Contract'      => 'Recurring',
32                         'Options'       => array(),
33                         'RequiredInput' => array(),
34                         'OptionalInput' => array(
35                                         'Grid' => array(
36                                                         'NumberOfRecords' => 'Integer',
37                                                         'Page'            => 'Integer',
38                                                         'Filter'          => 'Array',
39                                                         'OrderBy'         => 'Array',
40                                         )
41                         ),
42                         'Base'            => 'xmlRpcRequestLog',
43                         'NumberOfRecords' => 10,
44                         'Query'           => 'SELECT [SELECTION]
45                                                                 FROM \Valuation\Entity\XmlRpcRequestLog xmlRpcRequestLog
46                                                                 LEFT JOIN xmlRpcRequestLog.xmlRpcClient xmlRpcClient
47                                                                 LEFT JOIN xmlRpcRequestLog.valuation valuation
48                                                                 [WHERE] [ORDER]',
49                         'Selection'       => 'xmlRpcRequestLog, xmlRpcClient, valuation',
50                         'Filter'          => array(),
51                         'OrderBy'         => array('xmlRpcRequestLog.created' => 'DESC'),
52                         'Fields'          => array(
53                                                                         'id',
54                                                                         'xmlRpcClient' => array(
55                                                                                 'id',
56                                                                                 'clientName',
57                                                                         ),
58                                                                         'valuation' => array(
59                                                                                 'id',
60                                                                                 'valuationNumber',
61                                                                         ),
62                                                                         'clientApiId',
63                                                                         'ipAddress',
64                                                                         'methodName',
65                                                                         'status',
66                                                                         'created' => 'DateTime',
67                                                                         'packet' => 'Array'
68                                                                 )
69         );
70
71
72
73 }