Added a few more importer fields OFFICE, X-MS-ASSISTANT, X-MS-MANAGER and X-MS-SPOUSE

This commit is contained in:
Christoph Haas 2017-02-27 22:53:39 +01:00
parent d93d9ca1b2
commit 694b705bb9
2 changed files with 13 additions and 1 deletions

View File

@ -6,6 +6,6 @@
} }
], ],
"require": { "require": {
"jeroendesloovere/vcard": "dev-patchcategories" "jeroendesloovere/vcard": "dev-master"
} }
} }

View File

@ -872,6 +872,9 @@ class ContactModule extends Module
$properties["fileas"] = $vCard->organization; $properties["fileas"] = $vCard->organization;
} }
} }
if (isset($vCard->department)) {
$properties["department_name"] = $vCard->department;
}
if (isset($vCard->title)) { if (isset($vCard->title)) {
$properties["title"] = $vCard->title; $properties["title"] = $vCard->title;
} }
@ -927,6 +930,15 @@ class ContactModule extends Module
if (isset($vCard->note)) { if (isset($vCard->note)) {
$properties["notes"] = $vCard->note; $properties["notes"] = $vCard->note;
} }
if (isset($vCard->x["msassistant"])) {
$properties["assistant"] = $vCard->x["msassistant"];
}
if (isset($vCard->x["msmanager"])) {
$properties["manager_name"] = $vCard->x["msmanager"];
}
if (isset($vCard->x["msspouse"])) {
$properties["spouse_name"] = $vCard->x["msspouse"];
}
if (isset($vCard->categories) && count($vCard->categories) > 0) { if (isset($vCard->categories) && count($vCard->categories) > 0) {
$categories = array(); $categories = array();
foreach ($vCard->categories as $category) { foreach ($vCard->categories as $category) {