summaryrefslogtreecommitdiff
path: root/scripts/ext_skel_ng/xml_stream_callback_parser.php
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-06-29 12:21:58 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-06-29 12:21:58 +0000
commit7218a70ff684e476a2fd4f0ed75a466de5f5c724 (patch)
treedd197ca646a537e508e45f6e249f434b3cb119e3 /scripts/ext_skel_ng/xml_stream_callback_parser.php
parent4aa81c9d72395c5f8ca0a6decef51c6eff1904be (diff)
downloadphp-git-7218a70ff684e476a2fd4f0ed75a466de5f5c724.tar.gz
ext_skel is no more, and ext_skel_ng is moving to PEAR::PECL_Gen
Diffstat (limited to 'scripts/ext_skel_ng/xml_stream_callback_parser.php')
-rw-r--r--scripts/ext_skel_ng/xml_stream_callback_parser.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/scripts/ext_skel_ng/xml_stream_callback_parser.php b/scripts/ext_skel_ng/xml_stream_callback_parser.php
deleted file mode 100644
index 5ac0d62d31..0000000000
--- a/scripts/ext_skel_ng/xml_stream_callback_parser.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
- class xml_stream_callback_parser extends xml_stream_parser {
-
- function __construct($stream) {
- $this->cdata = "";
- $this->tags = array();
- $this->attrs = array();
-
- parent::__construct($stream);
- }
-
- function cdata($parser, $cdata) {
- $this->cdata .= $cdata;
- }
-
- function tag_open($parser, $tag, $attributes) {
- array_push($this->tags, $tag);
- array_push($this->attrs, $attributes);
- }
-
- function tag_close($parser, $tag) {
- $attributes = array_pop($this->attrs);
-
- for ($tags = $this->tags; count($tags); array_shift($tags)) {
- $method = "handle_".join("_", $tags);
- if (method_exists($this, $method)) {
- $this->$method($attributes);
- break;
- }
- }
-
- $this->cdata = "";
- array_pop($this->tags);
- }
- }
-?> \ No newline at end of file