3
include_once 'Horde/SyncML/State.php';
4
include_once 'Horde/SyncML/Command.php';
7
* $Horde: framework/SyncML/SyncML/Command/Put.php,v 1.12.10.1 2005/01/03 12:19:15 jan Exp $
9
* Copyright 2003-2005 Anthony Mills <amills@pyramid6.com>
11
* See the enclosed file COPYING for license information (LGPL). If you
12
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
14
* @author Anthony Mills <amills@pyramid6.com>
15
* @version $Revision: 1.12.10.1 $
17
* @package Horde_SyncML
19
class Horde_SyncML_Command_Put extends Horde_SyncML_Command {
21
function output($currentCmdID, &$output )
23
$state = $_SESSION['SyncML.state'];
25
$status = &new Horde_SyncML_Command_Status((($state->isAuthorized()) ? RESPONSE_OK : RESPONSE_INVALID_CREDENTIALS), 'Put');
26
$status->setCmdRef($this->_cmdID);
28
$ref = ($state->getVersion() == 0) ? './devinf10' : './devinf11';
30
$status->setSourceRef($ref);
32
return $status->output($currentCmdID, $output);