Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117756104
ActiveSync.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
ActiveSync.php
View Options
<?php
/**
* Syncroton
*
* @package Wbxml
* @subpackage ActiveSync
* @license http://www.tine20.org/licenses/lgpl.html LGPL Version 3
* @copyright Copyright (c) 2008-2009 Metaways Infosystems GmbH (http://www.metaways.de)
* @author Lars Kneschke <l.kneschke@metaways.de>
* @version $Id:Factory.php 4968 2008-10-17 09:09:33Z l.kneschke@metaways.de $
*/
/**
* class documentation
*
* @package Wbxml
* @subpackage ActiveSync
*/
class
Syncroton_Wbxml_Dtd_ActiveSync
{
const
CODEPAGE_AIRSYNC
=
0
;
const
CODEPAGE_CONTACTS
=
1
;
const
CODEPAGE_EMAIL
=
2
;
const
CODEPAGE_AIRNOTIFY
=
3
;
const
CODEPAGE_CALENDAR
=
4
;
const
CODEPAGE_MOVE
=
5
;
const
CODEPAGE_ITEMESTIMATE
=
6
;
const
CODEPAGE_FOLDERHIERARCHY
=
7
;
const
CODEPAGE_MEETINGRESPONSE
=
8
;
const
CODEPAGE_TASKS
=
9
;
const
CODEPAGE_RESOLVERECIPIENTS
=
10
;
const
CODEPAGE_VALIDATECERT
=
11
;
const
CODEPAGE_CONTACTS2
=
12
;
const
CODEPAGE_PING
=
13
;
const
CODEPAGE_PROVISION
=
14
;
const
CODEPAGE_SEARCH
=
15
;
const
CODEPAGE_GAL
=
16
;
const
CODEPAGE_AIRSYNCBASE
=
17
;
const
CODEPAGE_SETTINGS
=
18
;
const
CODEPAGE_DOCUMENTLIBRARY
=
19
;
const
CODEPAGE_ITEMOPERATIONS
=
20
;
const
CODEPAGE_COMPOSEMAIL
=
21
;
const
CODEPAGE_EMAIL2
=
22
;
const
CODEPAGE_NOTES
=
23
;
const
CODEPAGE_RIGHTSMANAGEMENT
=
24
;
/**
* variable to hold currently active codepage
*
* @var Syncroton_Wbxml_Dtd_ActiveSync_Abstract
*/
protected
$_currentCodePage
;
/**
* the constructor
*
*/
public
function
__construct
()
{
$this
->
_currentCodePage
=
new
Syncroton_Wbxml_Dtd_ActiveSync_CodePage0
();
}
/**
* returns reference to current codepage
*
* @return Syncroton_Wbxml_Dtd_ActiveSync_Abstract
*/
public
function
getCurrentCodePage
()
{
return
$this
->
_currentCodePage
;
}
/**
* switch to another codepage
*
* @param integer $_codePageId id of the codepage
* @return Syncroton_Wbxml_Dtd_ActiveSync_Abstract
*/
public
function
switchCodePage
(
$_codePageId
)
{
$className
=
'Syncroton_Wbxml_Dtd_ActiveSync_CodePage'
.
$_codePageId
;
$this
->
_currentCodePage
=
new
$className
();
return
$this
->
_currentCodePage
;
}
/**
* get initial dom document
*
* @return DOMDocument
*/
public
function
getDomDocument
(
$_nameSpace
,
$_tag
)
{
// Creates an instance of the DOMImplementation class
$imp
=
new
DOMImplementation
();
// Creates a DOMDocumentType instance
$dtd
=
$imp
->
createDocumentType
(
'AirSync'
,
"-//AIRSYNC//DTD AirSync//EN"
,
"http://www.microsoft.com/"
);
// Creates a DOMDocument instance
$dom
=
$imp
->
createDocument
(
$_nameSpace
,
$_tag
,
$dtd
);
$dom
->
encoding
=
'utf-8'
;
$dom
->
formatOutput
=
false
;
return
$dom
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 8:29 AM (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
46/c4/8ffd7982c8ecdbf05c8fbb550d79
Default Alt Text
ActiveSync.php (3 KB)
Attached To
Mode
rS syncroton
Attached
Detach File
Event Timeline