Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821273
MockPlugin.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
MockPlugin.php
View Options
<?php
namespace
Sabre\CalDAV\Schedule\IMip
;
/**
* iMIP handler.
*
* This class is responsible for sending out iMIP messages. iMIP is the
* email-based transport for iTIP. iTIP deals with scheduling operations for
* iCalendar objects.
*
* If you want to customize the email that gets sent out, you can do so by
* extending this class and overriding the sendMessage method.
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class
MockPlugin
extends
\Sabre\CalDAV\Schedule\IMipPlugin
{
protected
$emails
=
array
();
/**
* This function is reponsible for sending the actual email.
*
* @param string $to Recipient email address
* @param string $subject Subject of the email
* @param string $body iCalendar body
* @param array $headers List of headers
* @return void
*/
protected
function
mail
(
$to
,
$subject
,
$body
,
array
$headers
)
{
$this
->
emails
[]
=
array
(
'to'
=>
$to
,
'subject'
=>
$subject
,
'body'
=>
$body
,
'headers'
=>
$headers
,
);
}
public
function
getSentEmails
()
{
return
$this
->
emails
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Dec 23, 1:50 PM (7 h, 38 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914537
Default Alt Text
MockPlugin.php (1 KB)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment