| Next revision | Previous revision |
| scriptlog:lib:utility:wordpressimporter [2026/09/26 09:09] – admin admin | scriptlog:lib:utility:wordpressimporter [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Utility | | | ''@category'' | Utility | |
| | ''@author'' | M.Noermoehammad | | | ''@author'' | M.Noermoehammad | |
| | ''@license'' | MIT | | | ''@license'' | MIT | |
| | ''@version'' | 1.0 | | | ''@version'' | 1.0 | |
| | ''@since'' | Since Release 1.0 | | | ''@since'' | Since Release 1.0 | |
| |
| ======= Inheritance ======= | ======= Inheritance ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (4) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$xml'' | | 18 | |
| | | ''private'' | ''(untyped)'' | ''$wxrVersion'' | | 19 | |
| | | ''private'' | ''(untyped)'' | ''$siteUrl'' | | 20 | |
| | | ''private'' | ''(untyped)'' | ''$title'' | | 21 | |
| |
| ======= Methods (11) ======= | ======= Methods (11) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 23 | | | public | ''__construct()'' | (undocumented) | 23 | |
| | public | ''parse()'' | Parse WXR file from string | 37 | | | public | ''parse()'' | Parse WXR file from string | 37 | |
| | public | ''getSiteInfo()'' | Get site information | 73 | | | public | ''getSiteInfo()'' | Get site information | 73 | |
| | public | ''getCategories()'' | Extract all categories from WXR | 87 | | | public | ''getCategories()'' | Extract all categories from WXR | 87 | |
| | public | ''getTags()'' | Extract all tags from WXR | 124 | | | public | ''getTags()'' | Extract all tags from WXR | 124 | |
| | public | ''getPosts()'' | Extract all posts/pages from WXR | 157 | | | public | ''getPosts()'' | Extract all posts/pages from WXR | 157 | |
| | private | ''getCommentsFromItem()'' | Extract comments from post item | 283 | | | private | ''getCommentsFromItem()'' | Extract comments from post item | 283 | |
| | private | ''mapPostStatus()'' | Map WordPress post status to Blogware status | 319 | | | private | ''mapPostStatus()'' | Map WordPress post status to Blogware status | 319 | |
| | private | ''mapCommentStatus()'' | Map WordPress comment status to Blogware status | 339 | | | private | ''mapCommentStatus()'' | Map WordPress comment status to Blogware status | 339 | |
| | private | ''formatDate()'' | Format date string | 357 | | | private | ''formatDate()'' | Format date string | 357 | |
| | private | ''cleanXmlContent()'' | Clean XML content | 373 | | | private | ''cleanXmlContent()'' | Clean XML content | 373 | |
| |
| |
| Parse WXR file from string | Parse WXR file from string |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$content'' | ''(untyped)'' | //required// | //none// | | | ''$content'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — bool | **Returns:** ''(none declared)'' — bool |
| Extract comments from post item | Extract comments from post item |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$item'' | ''(untyped)'' | //required// | //none// | | | ''$item'' | ''(untyped)'' | //required// | //none// | |
| | ''$namespaces'' | ''(untyped)'' | //required// | //none// | | | ''$namespaces'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| Map WordPress post status to Blogware status | Map WordPress post status to Blogware status |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$status'' | ''(untyped)'' | //required// | //none// | | | ''$status'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Map WordPress comment status to Blogware status | Map WordPress comment status to Blogware status |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$status'' | ''(untyped)'' | //required// | //none// | | | ''$status'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Format date string | Format date string |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$date'' | ''(untyped)'' | //required// | //none// | | | ''$date'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Clean XML content | Clean XML content |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$content'' | ''(untyped)'' | //required// | //none// | | | ''$content'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |