Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
f98f21c5
Commit
f98f21c5
authored
Mar 29, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZO-81 Transport Notes as Appointments.
parent
1a43ed4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
streamimporter.php
src/lib/core/streamimporter.php
+7
-7
ping.php
src/lib/request/ping.php
+2
-2
sync.php
src/lib/request/sync.php
+3
-3
No files found.
src/lib/core/streamimporter.php
View file @
f98f21c5
...
@@ -88,19 +88,19 @@ class ImportChangesStream implements IImportChanges {
...
@@ -88,19 +88,19 @@ class ImportChangesStream implements IImportChanges {
return
false
;
return
false
;
}
}
// Acacia ZO-42: to sync Notes to Outlook we sync them as
Task
s
// Acacia ZO-42: to sync Notes to Outlook we sync them as
Appointment
s
if
(
$this
->
classAsString
==
"SyncNote"
&&
ZPush
::
GetDeviceManager
()
->
IsOutlookClient
())
{
if
(
$this
->
classAsString
==
"SyncNote"
&&
ZPush
::
GetDeviceManager
()
->
IsOutlookClient
())
{
$
task
=
new
SyncTask
();
$
appointment
=
new
SyncAppointment
();
$
task
->
flags
=
$message
->
flags
;
$
appointment
->
flags
=
$message
->
flags
;
if
(
isset
(
$message
->
asbody
))
if
(
isset
(
$message
->
asbody
))
$
task
->
asbody
=
$message
->
asbody
;
$
appointment
->
asbody
=
$message
->
asbody
;
if
(
isset
(
$message
->
categories
))
if
(
isset
(
$message
->
categories
))
$
task
->
categories
=
$message
->
categories
;
$
appointment
->
categories
=
$message
->
categories
;
if
(
isset
(
$message
->
subject
))
if
(
isset
(
$message
->
subject
))
$
task
->
subject
=
$message
->
subject
;
$
appointment
->
subject
=
$message
->
subject
;
// TODO color of the note
// TODO color of the note
$message
=
$
task
;
$message
=
$
appointment
;
}
}
// prevent sending the same object twice in one request
// prevent sending the same object twice in one request
...
...
src/lib/request/ping.php
View file @
f98f21c5
...
@@ -283,8 +283,8 @@ class Ping extends RequestProcessor {
...
@@ -283,8 +283,8 @@ class Ping extends RequestProcessor {
*/
*/
private
function
isClassValid
(
$class
,
$spa
)
{
private
function
isClassValid
(
$class
,
$spa
)
{
if
(
$class
==
$spa
->
GetContentClass
()
||
if
(
$class
==
$spa
->
GetContentClass
()
||
// Acacia ZO-42: Notes are synched as
Task
s
// Acacia ZO-42: Notes are synched as
Appointment
s
(
self
::
$deviceManager
->
IsOutlookClient
()
&&
$class
==
"
Tasks
"
&&
$spa
->
GetContentClass
()
==
"Notes"
)
(
self
::
$deviceManager
->
IsOutlookClient
()
&&
$class
==
"
Calendar
"
&&
$spa
->
GetContentClass
()
==
"Notes"
)
)
{
)
{
return
true
;
return
true
;
}
}
...
...
src/lib/request/sync.php
View file @
f98f21c5
...
@@ -453,10 +453,10 @@ class Sync extends RequestProcessor {
...
@@ -453,10 +453,10 @@ class Sync extends RequestProcessor {
if
((
$el
=
self
::
$decoder
->
getElementStartTag
(
SYNC_DATA
))
&&
(
$el
[
EN_FLAGS
]
&
EN_FLAGS_CONTENT
))
{
if
((
$el
=
self
::
$decoder
->
getElementStartTag
(
SYNC_DATA
))
&&
(
$el
[
EN_FLAGS
]
&
EN_FLAGS_CONTENT
))
{
$message
=
ZPush
::
getSyncObjectFromFolderClass
(
$spa
->
GetContentClass
());
$message
=
ZPush
::
getSyncObjectFromFolderClass
(
$spa
->
GetContentClass
());
// Acacia ZO-42: OL sends Notes as
Task
s
// Acacia ZO-42: OL sends Notes as
Appointment
s
if
(
$spa
->
GetContentClass
()
==
"Notes"
&&
self
::
$deviceManager
->
IsOutlookClient
())
{
if
(
$spa
->
GetContentClass
()
==
"Notes"
&&
self
::
$deviceManager
->
IsOutlookClient
())
{
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
"HandleSync(): Outlook sends Notes as
Tasks, read as Tasks
and convert it into a SyncNote object."
);
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
"HandleSync(): Outlook sends Notes as
Appointments, read as SyncAppointment
and convert it into a SyncNote object."
);
$message
=
new
Sync
Task
();
$message
=
new
Sync
Appointment
();
$message
->
Decode
(
self
::
$decoder
);
$message
->
Decode
(
self
::
$decoder
);
$note
=
new
SyncNote
();
$note
=
new
SyncNote
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment