Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Importer: XML-Parsing #25

Open
derpixler opened this issue Dec 17, 2015 · 0 comments
Open

Importer: XML-Parsing #25

derpixler opened this issue Dec 17, 2015 · 0 comments
Assignees
Milestone

Comments

@derpixler
Copy link
Contributor

The following structures has to be read out of the XML-File:

  • User wp:user
  • Terms wp:category, wp:tag(?), wp:nav_menu_item(?), wp:term(?)
    • Term relations
  • Posts item
    • MetaData
    • Post relations
  • Comments

The interface format of the entities…

User

Attributes:

 int:    origin_user_id
 string: name
 string: email
 string: display_name
[string: first_name]
[string: last_name]
[object: roles]

[]… maybe empty values
roles has to be defined later

Terms

Attributes:

 int:    origin_term_id
 string: taxonomy
 string: name
 string: slug
[string: description]
[int:    origin_parent_term_id]
[array:  locale_relations]

Term locale relations

 int:      origin_post_id
 string:   locale

Posts

Attributes:

 int:      origin_post_id
 string:   post_title
 string:   post_guid
 DateTime: post_date
 string:   comment_status
 string:   ping_status
 string:   post_status
 string:   post_type
 bool:     is_sticky
[string:   origin_link]
[string:   post_excerpt]
[string:   post_content]
[string:   post_name]
[int:      origin_post_parent_id]
[int:      menu_order]
[string:   post_password]
[array:    terms]
[array:    meta]
[array:    locale_relations]

Post meta

Attributes:

 string:   meta_key
 mixed:    meta_value

Post terms

Attributes:

 int:      origin_term_id
 string:   taxonomy
 string:   name
 string:   slug

Post locale relations

Attributes:

 int:      origin_post_id
 string:   locale

Comments

Attributes:

  int         origin_post_id
  string      author_name
  string      author_email
  string      author_url
  string      author_ip
  DateTime    date
  string      content
  int         karma
  string      approved
  string      agent
  string      type
  int         origin_user_id
  int         origin_parent_comment_id
  array       meta
@dnaber-de dnaber-de self-assigned this Dec 17, 2015
@derpixler derpixler mentioned this issue Dec 17, 2015
43 tasks
@derpixler derpixler modified the milestone: 0.0.1.2 Dec 17, 2015
@dnaber-de dnaber-de changed the title Importer: XML-Parsing [DRAFT] Importer: XML-Parsing Dec 17, 2015
@dnaber-de dnaber-de mentioned this issue Dec 17, 2015
@dnaber-de dnaber-de changed the title [DRAFT] Importer: XML-Parsing Importer: XML-Parsing Dec 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants