AtomParser::__construct() WordPress Method

The AtomParser::__construct() method is used to initialize the AtomParser class. It takes two parameters: an XML string and an options array. The XML string is the feed content to be parsed, and the options array can contain options for how the feed should be parsed.

AtomParser::__construct() #

PHP5 constructor.


Source

File: wp-includes/atomlib.php

    function __construct() {

        $this->feed = new AtomFeed();
        $this->current = null;
        $this->map_attrs_func = array( __CLASS__, 'map_attrs' );
        $this->map_xmlns_func = array( __CLASS__, 'map_xmlns' );
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.