| @@ 248-260 (lines=13) @@ | ||
| 245 | * @param string $parser Deprecated? |
|
| 246 | * @param string $data The data to be parsed |
|
| 247 | */ |
|
| 248 | function element_start($parser, $data) |
|
| 249 | { |
|
| 250 | $data = api_utf8_decode($data); |
|
| 251 | global $user; |
|
| 252 | global $current_tag; |
|
| 253 | switch ($data) { |
|
| 254 | case 'Contact': |
|
| 255 | $user = array (); |
|
| 256 | break; |
|
| 257 | default: |
|
| 258 | $current_tag = $data; |
|
| 259 | } |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| 263 | * XML-parser: handle end of element |
|
| @@ 249-261 (lines=13) @@ | ||
| 246 | * @param string $parser Deprecated? |
|
| 247 | * @param string $data The data to be parsed |
|
| 248 | */ |
|
| 249 | function element_start($parser, $data) |
|
| 250 | { |
|
| 251 | $data = api_utf8_decode($data); |
|
| 252 | global $user; |
|
| 253 | global $current_tag; |
|
| 254 | switch ($data) { |
|
| 255 | case 'Contact': |
|
| 256 | $user = array (); |
|
| 257 | break; |
|
| 258 | default: |
|
| 259 | $current_tag = $data; |
|
| 260 | } |
|
| 261 | } |
|
| 262 | ||
| 263 | /** |
|
| 264 | * XML-parser: handle end of element |
|
| @@ 2671-2682 (lines=12) @@ | ||
| 2668 | /** |
|
| 2669 | * XML-parser: the handler at the beginning of element. |
|
| 2670 | */ |
|
| 2671 | function element_start($parser, $data) { |
|
| 2672 | $data = api_utf8_decode($data); |
|
| 2673 | global $user; |
|
| 2674 | global $current_tag; |
|
| 2675 | switch ($data) { |
|
| 2676 | case 'Contact' : |
|
| 2677 | $user = array (); |
|
| 2678 | break; |
|
| 2679 | default : |
|
| 2680 | $current_tag = $data; |
|
| 2681 | } |
|
| 2682 | } |
|
| 2683 | ||
| 2684 | /** |
|
| 2685 | * XML-parser: the handler at the end of element. |
|