initial commit
[namibia] / module / Utility / src / Utility / Fixture / Template.php
1 <?php
2
3 namespace Utility\Fixture;
4
5 class Template  extends \Fixture\Service\Fixture
6 {
7         static public function build()
8         {
9                 $tempatesDir = __DIR__ . '/../../../../../data/templates/';
10
11                 parent::addStack('\Utility\Entity\Template',
12                                 array(
13                                         array(
14                                                         'name'                          => 'auction-list',
15                                                         'subject'                       => 'Vehicles coming off auction.',
16                                                         'tags'                          => 'auctioncount',
17                                                         'emailTemplate'         => file_get_contents($tempatesDir . 'auction-list.html'),
18                                                         'smsTemplate'           => '',
19                                                         'repeaterTemplate'      => parent::getReference('Template.AuctionListRepeater')
20                                         ),
21                                         array(
22                                                         'name'                  => 'auction-loaded',
23                                                         'subject'               => 'Vehicle live on Bid4Cars Auction.',
24                                                         'tags'                  => 'first_name,family_name,make,model,type,image',
25                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-loaded.html'),
26                                                         'smsTemplate'   => ''
27                                         ),
28                                         array(
29                                                         'name'                  => 'auction-no-sale',
30                                                         'subject'               => 'No winner on Bid4Cars Auction.',
31                                                         'tags'                  => 'first_name,family_name,vehicle,reservePrice,registrationNumber,stockNumber',
32                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-no-sale.html'),
33                                                         'smsTemplate'   => ''
34                                         ),
35                                         array(
36                                                         'name'                  => 'auction-sale-admin',
37                                                         'subject'               => 'Auction Successful.',
38                                                         'tags'                  => 'vehicle,seller,price,buyer',
39                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-sale-admin.html'),
40                                                         'smsTemplate'   => ''
41                                         ),
42                                         array(
43                                                         'name'                  => 'auction-sale-buyer',
44                                                         'subject'               => 'Bid Successful.',
45                                                         'tags'                  => 'first_name,family_name,vehicle,seller,price,seller_name,vehicle_address,'
46                                                                                          . 'seller_billing_address,seller_vat_number,seller_email,stock_number,'
47                                                                                          . 'buyer,buyer_name,buyer_address,buyer_vat_number,'
48                                                                                          . 'buyer_mobile,buyer_email',
49                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-sale-buyer.html'),
50                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'auction-sale-buyer.txt')
51                                         ),
52                                         array(
53                                                         'name'                  => 'auction-sale-seller',
54                                                         'subject'               => 'Auction Successul.',
55                                                         'tags'                  => 'first_name,family_name,vehicle,price,buyer,buyer_name,'
56                                                                                          . 'buyer_address,buyer_vat_number,buyer_mobile,buyer_email,'
57                                                                                          . 'seller,seller_name,vehicle_address,seller_billing_address,'
58                                                                                          . 'seller_vat_number,seller_email,stock_number',
59                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-sale-seller.html'),
60                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'auction-sale-seller.txt')
61                                         ),
62                                         array(
63                                                         'name'                  => 'auction-outbid',
64                                                         'subject'               => 'You have been outbid.',
65                                                         'tags'                  => 'first_name,family_name,vehicle,seller,price,bid,auction_expiry_date',
66                                                         'emailTemplate' => file_get_contents($tempatesDir . 'outbid.html'),
67                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'outbid.txt')
68                                         ),
69                                         array(
70                                                         'name'                  => 'auction-question',
71                                                         'subject'               => 'Stock Question.',
72                                                         'tags'                  => 'first_name,family_name,dealer,vehicle,question',
73                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-question.html'),
74                                                         'smsTemplate'   => ''
75                                         ),
76                                         array(
77                                                         'name'                  => 'auction-reply',
78                                                         'subject'               => 'Stock Reply.',
79                                                         'tags'                  => 'first_name,family_name,dealer,vehicle,question,reply',
80                                                         'emailTemplate' => file_get_contents($tempatesDir . 'auction-reply.html'),
81                                                         'smsTemplate'   => ''
82                                         ),
83                                         'template.forgot.pin' => array(
84                                                         'name'                  => 'forgot-pin',
85                                                         'subject'               => 'Your pin was reset on the Bid 4 Cars website.',
86                                                         'tags'                  => 'firstName,familyName,email,pin',
87                                                         'emailTemplate' => file_get_contents($tempatesDir . 'forgot-pin.html'),
88                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'forgot-pin.txt')
89                                         ),
90                                         array(
91                                                         'name'                  => 'public-submission',
92                                                         'subject'               => 'Notification of successful submission of vehicle.',
93                                                         'tags'                  => 'first_name,family_name,year,make,model,type,reg_no',
94                                                         'emailTemplate' => file_get_contents($tempatesDir . 'public-submission.html'),
95                                                         'smsTemplate'   => ''
96                                         ),
97                                         'template.valuation.new.mobile' => array(
98                                                         'name'                  => 'valuation-mobile-new',
99                                                         'subject'               => 'New mobile valuation.',
100                                                         'tags'                  => 'firstName,familyName,vehicle_reg,customer_name,customer_family_name',
101                                                         'emailTemplate' => '',
102                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'valuation-mobile-new.txt')
103                                         ),
104                                         'template.valuation.completed' => array(
105                                                         'name'                  => 'valuation-completed',
106                                                         'subject'               => 'Valuation Completed.',
107                                                         'tags'                  => 'firstName,familyName,customer.name,customer.familyName,dateCreated,refNo,valNo,year,make,model,type,regNo,salesComments',
108                                                         'emailTemplate' => file_get_contents($tempatesDir . 'valuation-completed.html'),
109                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'valuation-completed.txt')
110                                         ),
111                                         'template.highest.price.guide' => array(
112                                                         'name'                  => 'highest-price-guide',
113                                                         'subject'               => 'Confirmation of Highest Offer on Price Guide',
114                                                         'tags'                  => 'firstName,familyName,highest_offer_amount,Dealership_Name,year,make,model,Trade,Retail,registration_number',
115                                                         'emailTemplate' => file_get_contents($tempatesDir . 'highest-price-guide.html'),
116                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'highest-price-guide.txt')
117                                         ),
118                                         'template.price.guide.offer.accepted' => array(
119                                                         'name'                  => 'price-guide-offer-accepted',
120                                                         'subject'               => 'Price Guide Offer Accepted',
121                                                         'tags'                  => 'firstName,familyName,highestOfferAmount,dealershipName,registeredName,contactPerson,contactNumber,contactEmail,year,make,model,type,trade,retail,registrationNumber,daysRemaining,referenceNumber',
122                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-offer-accepted.html'),
123                                                         'smsTemplate'   => ''
124                                         ),
125                                         'template.price.guide.keep.stock' => array(
126                                                         'name'                  => 'price-guide-keep-stock',
127                                                         'subject'               => 'Vehicle retained for stock',
128                                                         'tags'                  => 'firstName,familyName,highestOfferAmount,dealershipName,year,make,model,type,trade,retail,registrationNumber,referenceNumber',
129                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-keep-stock.html'),
130                                                         'smsTemplate'   => ''
131                                         ),
132                                         'template.price.guide.offer.used' => array(
133                                                         'name'                  => 'price-guide-offer-used',
134                                                         'subject'               => 'Notification of Offer in Use',
135                                                         'tags'                  => 'firstName,familyName,offerAmount,year,make,model,type,regNo',
136                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-offer-used.html'),
137                                                         'smsTemplate'   => ''
138                                         ),
139                                         'template.price.guide.offer.dropped' => array(
140                                                         'name'                  => 'price-guide-offer-dropped',
141                                                         'subject'               => 'Notification of Offer NO LONGER in Use',
142                                                         'tags'                  => 'firstName,familyName,offerAmount,year,make,model,type,regNo,referenceNumber',
143                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-offer-dropped.html'),
144                                                         'smsTemplate'   => ''
145                                         ),
146                                         'template.price.guide.offer.declined' => array(
147                                                         'name'                  => 'price-guide-offer-declined',
148                                                         'subject'               => 'Notification of Offer not being successful',
149                                                         'tags'                  => 'firstName,familyName,offerAmount,year,make,model,type,regNo,referenceNumber',
150                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-offer-declined.html'),
151                                                         'smsTemplate'   => ''
152                                         ),
153                                         'template.price.guide.offer.relist' => array(
154                                                         'name'                  => 'price-guide-offer-relist',
155                                                         'subject'               => 'Notification of Relisting',
156                                                         'tags'                  => 'firstName,familyName,offerAmount,year,make,model,type,regNo,referenceNumber',
157                                                         'emailTemplate' => file_get_contents($tempatesDir . 'price-guide-offer-relist.html'),
158                                                         'smsTemplate'   => ''
159                                         ),
160
161                                         'template.club.stock.on.offer' => array(
162                                                         'name'                  => 'club-stock-on-offer',
163                                                         'subject'               => 'We invite you to make an offer.',
164                                                         'tags'                  => 'firstName,familyName,company.name,make.name,model.name,type.name,tradeRetail,link,seller',
165                                                         'emailTemplate' => file_get_contents($tempatesDir . 'club-stock-on-offer.html'),
166                                                         'smsTemplate'   => file_get_contents($tempatesDir . 'club-stock-on-offer.txt')
167                                         ),
168                                         'template.club.invite.accepted' => array(
169                                                         'name'                  => 'club-invite-accepted',
170                                                         'subject'               => 'Bid4cars: New club member.',
171                                                         'tags'                  => 'firstName,familyName,clubName,clubType,dealer,dealer.contactFirstName,dealer.contactFamilyName',
172                                                         'emailTemplate' => file_get_contents($tempatesDir . 'club-invite-accepted.html'),
173                                                         'smsTemplate'   => ''
174                                         ),
175                                         'template.club.membership.revoked' => array(
176                                                         'name'                  => 'club-membership-revoked',
177                                                         'subject'               => 'Bid4cars: Club membership revoked.',
178                                                         'tags'                  => 'firstName,familyName,dealer,clubName,reason',
179                                                         'emailTemplate' => file_get_contents($tempatesDir . 'club-membership-removed.html'),
180                                                         'smsTemplate'   => ''
181                                         ),
182                                         'template.club.invite.registered' => array(
183                                                         'name'                  => 'club-invite-registered',
184                                                         'subject'               => 'Bid4cars: Club membership invite.',
185                                                         'tags'                  => 'firstName,familyName,clubType,dealer,contact.name,contact.familyName,contact.email,contact.cell',
186                                                         'emailTemplate' => file_get_contents($tempatesDir . 'club-invite-registered.html'),
187                                                         'smsTemplate'   => ''
188                                         ),
189                                         'template.stock.not.sold' => array(
190                                                         'name'                  => 'stock-not-sold',
191                                                         'subject'               => 'Stock not yet sold.',
192                                                         'tags'                  => 'firstName,familyName,make.name,model.name,days',
193                                                         'emailTemplate' => file_get_contents($tempatesDir . 'stock-not-sold.html'),
194                                                         'smsTemplate'   => ''
195                                         ),
196                                         'template.general' => array(
197                                                         'name'                  => 'general',
198                                                         'subject'               => 'Bid4Cars email.',
199                                                         'tags'                  => 'body',
200                                                         'emailTemplate' => file_get_contents($tempatesDir . 'general.html'),
201                                                         'smsTemplate'   => ''
202                                         ),
203                                         'template.contact.request' => array(
204                                                         'name'                  => 'contact-rquest',
205                                                         'subject'               => 'Bid4Cars contact request.',
206                                                         'tags'                  => 'personName,tradingName,email,mobile,telephone,subject,message',
207                                                         'emailTemplate' => file_get_contents($tempatesDir . 'contact-request.html'),
208                                                         'smsTemplate'   => ''
209                                         ),
210                                         'template.welcome' => array(
211                                                         'name'                  => 'welcome',
212                                                         'subject'               => 'Thank you for registering with Bid4Cars.',
213                                                         'tags'                  => 'firstName,familyName',
214                                                         'emailTemplate' => file_get_contents($tempatesDir . 'welcome.html'),
215                                                         'smsTemplate'   => ''
216                                         ),
217                                         'template.activation.pending' => array(
218                                                         'name'                  => 'activation-pending',
219                                                         'subject'               => 'Activation of your registration on Bid4Cars is still pending.',
220                                                         'tags'                  => 'firstName,familyName,message',
221                                                         'emailTemplate' => file_get_contents($tempatesDir . 'activation-pending.html'),
222                                                         'smsTemplate'   => ''
223                                         ),
224                                         'template.registration.pending' => array(
225                                                         'name'                  => 'registration-pending',
226                                                         'subject'               => 'Your application was flagged as pending.',
227                                                         'tags'                  => 'firstName,familyName,status_reason',
228                                                         'emailTemplate' => file_get_contents($tempatesDir . 'registration-pending.html'),
229                                                         'smsTemplate'   => ''
230                                         ),
231                                         'template.registration.declined' => array(
232                                                         'name'                  => 'registration-declined',
233                                                         'subject'               => 'Your application was declined.',
234                                                         'tags'                  => 'firstName,familyName,status_reason',
235                                                         'emailTemplate' => file_get_contents($tempatesDir . 'registration-declined.html'),
236                                                         'smsTemplate'   => ''
237                                         ),
238                                         'template.registration.success' => array(
239                                                         'name'                  => 'registration-success',
240                                                         'subject'               => 'Congratulations, your registration has been approved!',
241                                                         'tags'                  => 'firstName,familyName,email',
242                                                         'emailTemplate' => file_get_contents($tempatesDir . 'registration-success.html'),
243                                                         'smsTemplate'   => ''
244                                         ),
245                                         'template.new.auctionprofile.recipient' => array(
246                                                         'name'                  => 'new-profile-auction',
247                                                         'subject'               => 'Profile created/updated',
248                                                         'tags'                  => 'firstName,familyName,email,pin',
249                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-profile-auction.html'),
250                                                         'smsTemplate'   => ''
251                                         ),
252                                         'template.new.profile.recipient' => array(
253                                                         'name'                  => 'new-profile-recipient',
254                                                         'subject'               => 'Profile created/updated',
255                                                         'tags'                  => 'firstName,familyName,email,pin',
256                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-profile-recipient.html'),
257                                                         'smsTemplate'   => ''
258                                         ),
259                                         'template.new.profile.admin.notification' => array(
260                                                         'name'                  => 'new-profile-admin-notification',
261                                                         'subject'               => 'Profile created/updated by user',
262                                                         'tags'                  => 'firstName,familyName,company.firstName,company.familyName,profile.name,company.name,profile.familyName,email',
263                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-profile-admin-notification.html'),
264                                                         'smsTemplate'   => ''
265                                         ),
266                                         'template.new.vehicle' => array(
267                                                         'name'                  => 'new-vehicle',
268                                                         'subject'               => 'New vehicle added',
269                                                         'tags'                  => 'firstName,familyName,vehicle',
270                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-vehicle.html'),
271                                                         'smsTemplate'   => ''
272                                         ),
273                                         'newsletter.basic' => array(
274                                                         'name'                  => 'newsletter-basic',
275                                                         'subject'               => 'Bid4cars newsletter',
276                                                         'tags'                  => 'headerImageSource,body,footerImageSource',
277                                                         'emailTemplate' => file_get_contents($tempatesDir . 'newsletter.html'),
278                                                         'smsTemplate'   => ''
279                                         ),
280                                         'template.dispute' => array(
281                                                         'name'                  => 'new-dispute',
282                                                         'subject'               => 'New Dispute Logged',
283                                                         'tags'                  => 'plaintive,defendant,vehicle,reference_number,registration_number,complaint'
284                                                                                          . ',plaintive_contact,plaintive_telephone,plaintive_mobile,plaintive_email'
285                                                                                          . ',defendant_contact,defendant_telephone,defendant_mobile,defendant_email',
286                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-dispute.html'),
287                                                         'smsTemplate'   => ''
288                                         ),
289                                         'template.newpublicpriceguide' => array(
290                                                         'name'                  => 'new-public-to-priceguide',
291                                                         'subject'               => 'Vehicle submitted to Dealer network',
292                                                         'tags'                  => 'firstName,familyName,year,make,model,type,regNo',
293                                                         'emailTemplate' => file_get_contents($tempatesDir . 'new-public-to-priceguide.html'),
294                                                         'smsTemplate'   => ''
295                                         )
296                                 )
297                 );
298         }
299 }