Browse Source

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

tags/v2.0.4
Christoph Haas 2 years ago
parent
commit
694b705bb9
2 changed files with 13 additions and 1 deletions
  1. +1
    -1
      php/composer.json
  2. +12
    -0
      php/module.contact.php

+ 1
- 1
php/composer.json View File

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

+ 12
- 0
php/module.contact.php View File

@@ -872,6 +872,9 @@ class ContactModule extends Module
$properties["fileas"] = $vCard->organization;
}
}
if (isset($vCard->department)) {
$properties["department_name"] = $vCard->department;
}
if (isset($vCard->title)) {
$properties["title"] = $vCard->title;
}
@@ -927,6 +930,15 @@ class ContactModule extends Module
if (isset($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) {
$categories = array();
foreach ($vCard->categories as $category) {

Loading…
Cancel
Save