| @@ 276-288 (lines=13) @@ | ||
| 273 | * @param string $parser Deprecated? |
|
| 274 | * @param string $data The data to be parsed |
|
| 275 | */ |
|
| 276 | function element_start($parser, $data) |
|
| 277 | { |
|
| 278 | $data = api_utf8_decode($data); |
|
| 279 | global $user; |
|
| 280 | global $current_tag; |
|
| 281 | switch ($data) { |
|
| 282 | case 'Contact': |
|
| 283 | $user = array(); |
|
| 284 | break; |
|
| 285 | default: |
|
| 286 | $current_tag = $data; |
|
| 287 | } |
|
| 288 | } |
|
| 289 | ||
| 290 | /** |
|
| 291 | * XML-parser: handle end of element |
|
| @@ 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 |
|
| @@ 2342-2353 (lines=12) @@ | ||
| 2339 | /** |
|
| 2340 | * XML-parser: the handler at the beginning of element. |
|
| 2341 | */ |
|
| 2342 | function element_start($parser, $data) |
|
| 2343 | { |
|
| 2344 | $data = api_utf8_decode($data); |
|
| 2345 | global $user; |
|
| 2346 | global $current_tag; |
|
| 2347 | switch ($data) { |
|
| 2348 | case 'Contact' : |
|
| 2349 | $user = array (); |
|
| 2350 | break; |
|
| 2351 | default: |
|
| 2352 | $current_tag = $data; |
|
| 2353 | } |
|
| 2354 | } |
|
| 2355 | ||
| 2356 | /** |
|