]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/tests/Sabre/CalDAV/Schedule/IMip/Mock.php
3dc83fff697a9f748baa4863643d4f380a2cb554
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / CalDAV / Schedule / IMip / Mock.php
1 <?php
2
3 /**
4  * iMIP handler.
5  *
6  * This class is responsible for sending out iMIP messages. iMIP is the 
7  * email-based transport for iTIP. iTIP deals with scheduling operations for 
8  * iCalendar objects.
9  *
10  * If you want to customize the email that gets sent out, you can do so by 
11  * extending this class and overriding the sendMessage method.
12  * 
13  * @package Sabre
14  * @subpackage CalDAV
15  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
16  * @author Evert Pot (http://www.rooftopsolutions.nl/) 
17  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
18  */
19 class Sabre_CalDAV_Schedule_IMip_Mock extends Sabre_CalDAV_Schedule_IMip {
20
21     protected $emails = array();
22
23     /**
24      * This function is reponsible for sending the actual email.
25      *
26      * @param string $to Recipient email address 
27      * @param string $subject Subject of the email
28      * @param string $body iCalendar body 
29      * @param array $headers List of headers 
30      * @return void
31      */
32     protected function mail($to, $subject, $body, array $headers) {
33
34         $this->emails[] = array(
35             'to' => $to,
36             'subject' => $subject,
37             'body' => $body,
38             'headers' => $headers,
39         );
40
41     }
42
43     public function getSentEmails() {
44
45         return $this->emails;
46
47     }
48
49
50 }