Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8223461
SmartForward.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SmartForward.php
View Options
<?php
/**
* Syncroton
*
* @package Syncroton
* @subpackage Command
* @license http://www.tine20.org/licenses/lgpl.html LGPL Version 3
* @copyright Copyright (c) 2009-2012 Metaways Infosystems GmbH (http://www.metaways.de)
* @author Lars Kneschke <l.kneschke@metaways.de>
*/
/**
* class to handle ActiveSync SmartForward command
*
* @package Syncroton
* @subpackage Command
*/
class
Syncroton_Command_SmartForward
extends
Syncroton_Command_SendMail
{
protected
$_defaultNameSpace
=
'uri:ComposeMail'
;
protected
$_documentElement
=
'SmartForward'
;
/**
* this function generates the response for the client
*
* @return void
*/
public
function
getResponse
()
{
$dataController
=
Syncroton_Data_Factory
::
factory
(
Syncroton_Data_Factory
::
CLASS_EMAIL
,
$this
->
_device
,
$this
->
_syncTimeStamp
);
try
{
$dataController
->
forwardEmail
(
$this
->
_source
,
$this
->
_mime
,
$this
->
_saveInSent
,
$this
->
_replaceMime
);
}
catch
(
Syncroton_Exception_Status
$ses
)
{
if
(
$this
->
_logger
instanceof
Zend_Log
)
$this
->
_logger
->
warn
(
__METHOD__
.
'::'
.
__LINE__
.
" Sending email failed: "
.
$ses
->
getMessage
());
$response
=
new
Syncroton_Model_SmartForward
(
array
(
'status'
=>
$ses
->
getCode
(),
));
$response
->
appendXML
(
$this
->
_outputDom
->
documentElement
,
$this
->
_device
);
return
$this
->
_outputDom
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 9, 9:21 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057145
Default Alt Text
SmartForward.php (1 KB)
Attached To
Mode
R4 syncroton
Attached
Detach File
Event Timeline
Log In to Comment