| @@ 380-396 (lines=17) @@ | ||
| 377 | $status = null; |
|
| 378 | $wfinstance = null; |
|
| 379 | ||
| 380 | foreach ($parameters as $parameter) { |
|
| 381 | list($paramName, $paramValue) = explode('=', $parameter); |
|
| 382 | ||
| 383 | switch ($paramName) { |
|
| 384 | case 'RELTYPE': |
|
| 385 | $reltype = $paramValue; |
|
| 386 | break; |
|
| 387 | ||
| 388 | case 'X-CTO-STATUS': |
|
| 389 | $status = $paramValue; |
|
| 390 | break; |
|
| 391 | ||
| 392 | case 'X-CTO-WFINSTANCE': |
|
| 393 | $wfinstance = (int) $paramValue; |
|
| 394 | break; |
|
| 395 | } |
|
| 396 | } |
|
| 397 | if (!empty($reltype)) { |
|
| 398 | require_once $GLOBALS['babInstallPath'] . 'utilit/reference.class.php'; |
|
| 399 | try { |
|
| @@ 53-66 (lines=14) @@ | ||
| 50 | $cn = ''; |
|
| 51 | $email = null; |
|
| 52 | ||
| 53 | foreach ($parameters as $parameter) { |
|
| 54 | list($paramName, $paramValue) = explode('=', $parameter); |
|
| 55 | switch ($paramName) { |
|
| 56 | case 'ROLE': |
|
| 57 | $role = $paramValue; |
|
| 58 | break; |
|
| 59 | case 'PARTSTAT': |
|
| 60 | $partstat = $paramValue; |
|
| 61 | break; |
|
| 62 | case 'CN': |
|
| 63 | $cn = trim($paramValue, '" '); |
|
| 64 | break; |
|
| 65 | } |
|
| 66 | } |
|
| 67 | if (stripos($iCalPropertyValue, 'MAILTO:') !== false) { |
|
| 68 | list(, $email) = explode(':', $iCalPropertyValue); |
|
| 69 | } |
|