text changes to registration mail content
[namibia] / module / Auction / src / Auction / Workflow.php
1 <?php
2 namespace Auction;
3
4
5 /**
6  * A workflow.
7  * @author andre.fourie
8  */
9
10 class Workflow extends \Workspace\Workflow
11 {
12
13         /**
14          * @var string
15          */
16         protected $namespace = __NAMESPACE__;
17         /**
18          * @var string
19          */
20         protected $parentFeature = 'Stock';
21         /**
22          * @var string
23          */
24         protected $rootEntity = 'Auction';
25         /**
26          * @var string
27          */
28         protected $rootIdField = 'auction';
29         /**
30          * @var string
31          */
32         protected $initState = 'Active';
33         /**
34          * @var string
35          */
36         protected $initTrigger = false;
37         /**
38          * @var string
39          */
40         protected $primaryEntity = 'Auction';
41         /**
42          * @var array
43          */
44         protected $entityMap = array(
45                 'Auction' => '\Auction\Entity\Auction',
46                 'Stock'   => '\Stock\Entity\Stock',
47                 'Bid'     => '\Auction\Entity\Bid',
48                 'AutoBid' => '\Auction\Entity\AutoBid'
49         );
50         /**
51          * @var array
52          */
53         protected $linkMap = array();
54         /**
55          * @var array
56          */
57         protected $listen = array();
58         /**
59          * @var array
60          */
61         protected $reclaim = array();
62         /**
63          * @var array
64          */
65         protected $stateLabel = array();
66         /**
67          * @var array
68          */
69         protected $stateMap = array(
70                 'Global'   => array(
71                         'Actions' => array(
72                                 'Auction.Grid'                    => array(),
73                                 'Auction.HistoricGrid'            => array(),
74                                 'Auction.HistoricMakeSelectList'  => array(),
75                                 'Auction.HistoricModelSelectList' => array(),
76                                 'Auction.HistoricTypeSelectList'  => array(),
77                                 'Auction.HistoricYearSelectList'  => array(),
78                                 'Auction.AdminGrid'               => array(),
79                                 'Basket.Grid'                     => array(),
80                                 'Bid.Create'                      => array(),
81                                 'AutoBid.Create'                  => array(),
82                                 'Increment.List'                  => array(),
83                                 'Increment.Create'                => array(),
84                                 'Increment.Update'                => array(),
85                                 'PublicHoliday.List'              => array(),
86                                 'PublicHoliday.Create'            => array(),
87                                 'PublicHoliday.Update'            => array(),
88                                 'PublicHoliday.Delete'            => array(),
89                                 'OpenDay.List'                    => array(),
90                                 'OpenDay.Create'                  => array(),
91                                 'OpenDay.Update'                  => array(),
92                                 'OpenDay.Delete'                  => array(),
93                                 'Question.AskedGrid'              => array(),
94                                 'Question.ToAnswerGrid'           => array(),
95                                 'Auction.Count'                   => array(),
96                 'Pdf.PrintPortal'  => array(),
97                         )
98                 ),
99                 'Active'   => array(
100                         'Actions' => array(
101                                 'Auction.View'     => array(),
102                                 'Auction.Remove'   => array(),
103                                 'Pdf.Print'        => array(),
104                 'Pdf.PrintPortal'  => array(),
105                                 'Basket.Create'    => array(),
106                                 'Basket.SetStatus' => array(),
107                                 'Bid.Grid'         => array(),
108                                 'Bid.Create'       => array(),
109                                 'AutoBid.Create'   => array(),
110                                 'Question.View'    => array(),
111                                 'Question.Create'  => array(),
112                                 'Reply.Create'     => array()
113                         ),
114                         'Routes'  => array(
115                                 'Workflow.ReturnToStock' => array(
116                                         'Destination' => 'Stock.Handover'
117                                 )
118                         )
119                 ),
120                 'Relist'   => array(
121                         'Actions' => array(
122                                 'Auction.View' => array(),
123                                 'Bid.Grid'     => array(),
124                                 'Pdf.Print'    => array(),
125                 'Pdf.PrintPortal'  => array(),
126                         ),
127                         'Routes'  => array(
128                                 'Workflow.Archive' => array(
129                                         'Destination' => 'This.Archived'
130                                 )
131                         )
132                 ),
133                 'Undone'   => array(
134                         'Actions' => array(
135                                 'Auction.View' => array(),
136                                 'Bid.Grid'     => array(),
137                                 'Pdf.Print'    => array(),
138                 'Pdf.PrintPortal'  => array(),
139                         ),
140                         'Routes'  => array(
141                                 'Workflow.Archive' => array(
142                                         'Destination' => 'This.Archived'
143                                 )
144                         )
145                 ),
146                 'Sold'     => array(
147                         'Actions' => array(
148                                 'Auction.View' => array(),
149                                 'Auction.Undo' => array(),
150                                 'Bid.Grid'     => array(),
151                                 'Pdf.Print'    => array(),
152                 'Pdf.PrintPortal'  => array(),
153                         ),
154                         'Routes'  => array(
155                                 'Workflow.Archive' => array(
156                                         'Destination' => 'This.Archived'
157                                 )
158                         )
159                 ),
160                 'Archived' => array(
161                         'Actions' => array(
162                                 'Auction.View' => array(),
163                                 'Bid.Grid'     => array(),
164                                 'Pdf.Print'    => array(),
165                 'Pdf.PrintPortal'  => array(),
166                                 'AutoBid.Create'   => array(),
167                 'Bid.Create'   => array(),
168                         )
169                 )
170         );
171
172
173 }