Title: AtomParser::__construct
Published: August 18, 2015
Last modified: April 28, 2025

---

# AtomParser::__construct()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/atomparser/__construct/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/atomparser/__construct/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/atomparser/__construct/?output_format=md#wp--skip-link--target)

PHP5 constructor.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/atomparser/__construct/?output_format=md#source)󠁿

    ```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' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/atomlib.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/atomlib.php#L97)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/atomlib.php#L97-L103)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/atomparser/__construct/?output_format=md#related)󠁿

| Used by | Description | 
| [AtomParser::AtomParser()](https://developer.wordpress.org/reference/classes/atomparser/atomparser/)`wp-includes/atomlib.php` |

PHP4 constructor.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fatomparser%2F__construct%2F)
before being able to contribute a note or feedback.