equal
deleted
inserted
replaced
9 if ( ! defined('ABSPATH') ) |
9 if ( ! defined('ABSPATH') ) |
10 die(); |
10 die(); |
11 |
11 |
12 global $opml, $map; |
12 global $opml, $map; |
13 |
13 |
14 // columns we wish to find are: link_url, link_name, link_target, link_description |
14 // columns we wish to find are: link_url, link_name, link_target, link_description |
15 // we need to map XML attribute names to our columns |
15 // we need to map XML attribute names to our columns |
16 $opml_map = array('URL' => 'link_url', |
16 $opml_map = array('URL' => 'link_url', |
17 'HTMLURL' => 'link_url', |
17 'HTMLURL' => 'link_url', |
18 'TEXT' => 'link_name', |
18 'TEXT' => 'link_name', |
19 'TITLE' => 'link_name', |
19 'TITLE' => 'link_name', |
25 $map = $opml_map; |
25 $map = $opml_map; |
26 |
26 |
27 /** |
27 /** |
28 * XML callback function for the start of a new XML tag. |
28 * XML callback function for the start of a new XML tag. |
29 * |
29 * |
30 * @since unknown |
30 * @since 0.71 |
31 * @access private |
31 * @access private |
32 * |
32 * |
33 * @uses $updated_timestamp Not used inside function. |
33 * @uses $updated_timestamp Not used inside function. |
34 * @uses $all_links Not used inside function. |
34 * @uses $all_links Not used inside function. |
35 * @uses $map Stores names of attributes to use. |
35 * @uses $map Stores names of attributes to use. |
66 } |
66 } |
67 |
67 |
68 /** |
68 /** |
69 * XML callback function that is called at the end of a XML tag. |
69 * XML callback function that is called at the end of a XML tag. |
70 * |
70 * |
71 * @since unknown |
71 * @since 0.71 |
72 * @access private |
72 * @access private |
73 * @package WordPress |
73 * @package WordPress |
74 * @subpackage Dummy |
74 * @subpackage Dummy |
75 * |
75 * |
76 * @param mixed $parser XML Parser resource. |
76 * @param mixed $parser XML Parser resource. |
92 xml_get_current_line_number($xml_parser))); |
92 xml_get_current_line_number($xml_parser))); |
93 } |
93 } |
94 |
94 |
95 // Free up memory used by the XML parser |
95 // Free up memory used by the XML parser |
96 xml_parser_free($xml_parser); |
96 xml_parser_free($xml_parser); |
97 ?> |
|