

namibia
bb2698c383a0585633180c7996aba816667c9e6d
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
<?php namespace Dispute\Service; /** * Manage Dispute data. * @author andre.fourie */ class Dispute extends \Dispute\DataBin\Dispute { /** * ExecuteAfter: Create. * New dispute created, notifications be required. * @param array $meta * @param object|null $jobRecord * @param object|null $record * @param \Workspace\Utility\ServiceInputParams $contract */ public function sendDisputeNotification($meta, $jobRecord, $record, \Workspace\Utility\ServiceInputParams $contract) { #-> Collect. $vehicle = $record->auction->stock->type->model->make->name . ', ' . $record->auction->stock->type->model->name . ', ' . $record->auction->stock->type->name . ' (' . $record->auction->stock->vehicleYear->name . ')'; $params = array( 'vehicle' => $vehicle, 'complaint' => $record->complaint, 'plaintive' => $record->fromCompany->name, 'defendant' => $record->againstCompany->name, 'reference_number' => $record->id, 'registration_number' => $record->auction->stock->registrationNumber, 'plaintive_contact' => $record->fromCompany->contact->firstName . ' ' . $record->fromCompany->contact->familyName, 'plaintive_telephone' => $record->fromCompany->contact->office, 'plaintive_mobile' => $record->fromCompany->contact->mobile, 'plaintive_email' => $record->fromCompany->contact->email, 'defendant_contact' => $record->againstCompany->contact->firstName . ' ' . $record->againstCompany->contact->familyName, 'defendant_telephone' => $record->againstCompany->contact->office, 'defendant_mobile' => $record->againstCompany->contact->mobile, 'defendant_email' => $record->againstCompany->contact->email ); #-> Send. $oNotify = new \Utility\Comms\Notification(); $oNotify->sendFromTemplate( $record->fromCompany->id, $record->createdBy->id, $record->fromCompany->id, $record->createdBy->id, $record->fromCompany->contact->email, null, null, 'new-dispute', $params ); $oNotify->sendFromTemplate( $record->fromCompany->id, $record->createdBy->id, $record->againstCompany->id, null, $record->againstCompany->contact->email, null, null, 'new-dispute', $params ); $oNotify->sendFromTemplate( $record->fromCompany->id, $record->createdBy->id, null, null, \Utility\Definitions\Locale::getAdminEmailAddress(), null, null, 'new-dispute', $params ); $oNotify->sendFromTemplate( $record->fromCompany->id, $record->createdBy->id, null, null, 'info@bid4cars.com.na', null, null, 'new-dispute', $params ); } } |
Commits for namibiamodule/Dispute/src/Dispute/Service/Dispute.php
Revision | Author | Commited | Message |
---|---|---|---|
bb2698 ...
![]() |
Mark | Mon 24 Oct, 2016 08:44:08 +0000 | latest update |
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |