\WpParser
Synopsis
class WpParser
{
- // members
- private $simple_xml;
- private $namespaces;
- private $posts;
- public static array $allowed_category_domains = ;
- public static array $allowed_page_types = ;
- // methods
- public void __construct()
- public void getPosts()
- public string ParseTags()
- public string ParseBlogContent()
- protected array parseComment()
- protected array parseComments()
- protected array parsePost()
- public void parse()
Members
private
- $namespaces
- $posts
- $simple_xml
public
- $allowed_category_domains
—
array
List of "tag" types that should be converted to tags -
$allowed_page_types
List of "page" types that should be converted to BlogEntry items
Methods
protected
- parseComment() — Parses a single comment
- parseComments() — Extracts comments from the wordpress post
- parsePost() — Parses a single blog post
public
- __construct()
- ParseBlogContent() — Parses and cleans up the body of the wordpress blog post
- ParseTags() — Extracts the categories from the blog post in the form of a single tag value suitable for BlogPost
- getPosts()
- parse()