3 namespace Utility\Fixture;
5 class Template extends \Fixture\Service\Fixture
7 static public function build()
9 $tempatesDir = __DIR__ . '/../../../../../data/templates/';
11 parent::addStack('\Utility\Entity\Template',
14 'name' => 'auction-list',
15 'subject' => 'Vehicles coming off auction.',
16 'tags' => 'auctioncount',
17 'emailTemplate' => file_get_contents($tempatesDir . 'auction-list.html'),
19 'repeaterTemplate' => parent::getReference('Template.AuctionListRepeater')
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'),
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'),
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'),
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')
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')
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')
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'),
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'),
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')
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'),
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')
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')
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')
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'),
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'),
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'),
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'),
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'),
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'),
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')
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'),
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'),
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'),
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'),
196 'template.general' => array(
198 'subject' => 'Bid4Cars email.',
200 'emailTemplate' => file_get_contents($tempatesDir . 'general.html'),
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'),
210 'template.welcome' => array(
212 'subject' => 'Thank you for registering with Bid4Cars.',
213 'tags' => 'firstName,familyName',
214 'emailTemplate' => file_get_contents($tempatesDir . 'welcome.html'),
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'),
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'),
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'),
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'),
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'),
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'),
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'),
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'),
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'),
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'),
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'),