| @@ 257-269 (lines=13) @@ | ||
| 254 | * @param string $parser Deprecated? |
|
| 255 | * @param string $data The data to be parsed |
|
| 256 | */ |
|
| 257 | function element_start($parser, $data) |
|
| 258 | { |
|
| 259 | $data = api_utf8_decode($data); |
|
| 260 | global $user; |
|
| 261 | global $current_tag; |
|
| 262 | switch ($data) { |
|
| 263 | case 'Contact': |
|
| 264 | $user = array(); |
|
| 265 | break; |
|
| 266 | default: |
|
| 267 | $current_tag = $data; |
|
| 268 | } |
|
| 269 | } |
|
| 270 | ||
| 271 | /** |
|
| 272 | * XML-parser: handle end of element |
|
| @@ 277-289 (lines=13) @@ | ||
| 274 | * @param string $parser Deprecated? |
|
| 275 | * @param string $data The data to be parsed |
|
| 276 | */ |
|
| 277 | function element_start($parser, $data) |
|
| 278 | { |
|
| 279 | $data = api_utf8_decode($data); |
|
| 280 | global $user; |
|
| 281 | global $current_tag; |
|
| 282 | switch ($data) { |
|
| 283 | case 'Contact': |
|
| 284 | $user = array(); |
|
| 285 | break; |
|
| 286 | default: |
|
| 287 | $current_tag = $data; |
|
| 288 | } |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * XML-parser: handle end of element |
|
| @@ 2460-2471 (lines=12) @@ | ||
| 2457 | /** |
|
| 2458 | * XML-parser: the handler at the beginning of element. |
|
| 2459 | */ |
|
| 2460 | function element_start($parser, $data) |
|
| 2461 | { |
|
| 2462 | $data = api_utf8_decode($data); |
|
| 2463 | global $user; |
|
| 2464 | global $current_tag; |
|
| 2465 | switch ($data) { |
|
| 2466 | case 'Contact' : |
|
| 2467 | $user = array(); |
|
| 2468 | break; |
|
| 2469 | default: |
|
| 2470 | $current_tag = $data; |
|
| 2471 | } |
|
| 2472 | } |
|
| 2473 | ||
| 2474 | /** |
|