Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




startelement [ WordPress Function ]

startelement ( $parser, $tagName, $attrs )
Access:
  • private
Parameters:
  • (mixed) $parser XML Parser resource.
  • (string) $tagName XML element name.
  • (array) $attrs XML element attributes.
Uses:
  • $updated_timestamp
  • $all_links
  • $map
Defined at:



XML callback function for the start of a new XML tag.

Source


<?php
function startElement($parser$tagName$attrs) {
    global 
$updated_timestamp$all_links$map;
    global 
$names$urls$targets$descriptions$feeds;

    if (
$tagName == 'OUTLINE') {
        foreach (
array_keys($map) as $key) {
            if (isset(
$attrs[$key])) {
                $
$map[$key] = $attrs[$key];
            }
        }

        
//echo("got data: link_url = [$link_url], link_name = [$link_name], link_target = [$link_target], link_description = [$link_description]<br />\n");

        // save the data away.
        
$names[] = $link_name;
        
$urls[] = $link_url;
        
$targets[] = $link_target;
        
$feeds[] = $link_rss;
        
$descriptions[] = $link_description;
    } 
// end if outline
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics