initial commit
[namibia] / module / PriceGuide / src / PriceGuide / Service / Invite.php
1 <?php
2 namespace PriceGuide\Service;
3
4
5
6 /**
7  * Manage Member data.
8  * @author andre.fourie
9  */
10 class Invite extends \PriceGuide\DataBin\Invite
11 {
12
13
14
15         /**
16          * ExecuteAfter: Update.
17          * Apply filtering to all clubs if option is selected.
18          *
19          * @param array $meta
20          * @param object|null $jobRecord
21          * @param object|null $record
22          * @param \Workspace\Utility\ServiceInputParams $contract
23          * @return array
24          */
25         public function applyFilterToAll($meta, $jobRecord, $record, \Workspace\Utility\ServiceInputParams $contract)
26         {
27                 #-> Change status.
28                 \Utility\Debug::errorLog('applyFilterToAll', $contract->options->ApplyToAll);
29         }
30
31         /**
32          * ExecuteAfter: Decline.
33          * Set status to Archived.
34          *
35          * @param array $meta
36          * @param object|null $jobRecord
37          * @param object|null $record
38          * @param \Workspace\Utility\ServiceInputParams $contract
39          * @return array
40          */
41         public function archiveMember($meta, $jobRecord, $record, \Workspace\Utility\ServiceInputParams $contract)
42         {
43                 #-> Change status.
44                 $record->status = 'Archived';
45                 $this->em->flush();
46         }
47
48
49
50 }