| Next revision | Previous revision |
| scriptlog:lib:utility:wordpressexporter [2026/09/26 09:09] – admin admin | scriptlog:lib:utility:wordpressexporter [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 (1) ======= | ======= Properties (3) ======= |
| |
| ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | ''private'' | ''(untyped)'' | ''$wxrVersion'' | '''1.2';'' | 18 | | | ''private'' | ''(untyped)'' | ''$wxrVersion'' | '''1.2''' | 18 | |
| | | ''private'' | ''(untyped)'' | ''$siteUrl'' | | 19 | |
| | | ''private'' | ''(untyped)'' | ''$siteTitle'' | | 20 | |
| |
| ======= Methods (8) ======= | ======= Methods (8) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 22 | | | public | ''__construct()'' | (undocumented) | 22 | |
| | public | ''export()'' | Export content to WXR format | 39 | | | public | ''export()'' | Export content to WXR format | 39 | |
| | private | ''getAuthors()'' | Get authors for export | 155 | | | private | ''getAuthors()'' | Get authors for export | 155 | |
| | private | ''getCategories()'' | Get categories for export | 182 | | | private | ''getCategories()'' | Get categories for export | 182 | |
| | private | ''getPosts()'' | Get posts for export | 200 | | | private | ''getPosts()'' | Get posts for export | 200 | |
| | private | ''getPostCategories()'' | Get categories associated with a post | 244 | | | private | ''getPostCategories()'' | Get categories associated with a post | 244 | |
| | private | ''getPostTags()'' | Get tags from post_tags field (comma-separated) | 263 | | | private | ''getPostTags()'' | Get tags from post_tags field (comma-separated) | 263 | |
| | private | ''getPostComments()'' | Get comments for a post | 282 | | | private | ''getPostComments()'' | Get comments for a post | 282 | |
| |
| |
| Export content to WXR format | Export content to WXR format |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$exportStats (by reference)'' | ''(untyped)'' | //required// | Reference to stats array to update | | | ''$exportStats (by reference)'' | ''(untyped)'' | //required// | Reference to stats array to update | |
| | ''$authorId'' | ''(untyped)'' | ''null'' | Filter by author ID (null for all) | | | ''$authorId'' | ''(untyped)'' | ''null'' | Filter by author ID (null for all) | |
| |
| **Returns:** ''(none declared)'' — string WXR XML content | **Returns:** ''(none declared)'' — string WXR XML content |
| Get authors for export | Get authors for export |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$authorId'' | ''(untyped)'' | ''null'' | //none// | | | ''$authorId'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| Get posts for export | Get posts for export |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$authorId'' | ''(untyped)'' | ''null'' | //none// | | | ''$authorId'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| Get categories associated with a post | Get categories associated with a post |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$postId'' | ''(untyped)'' | //required// | //none// | | | ''$postId'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| Get tags from post_tags field (comma-separated) | Get tags from post_tags field (comma-separated) |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$tagsField'' | ''(untyped)'' | //required// | //none// | | | ''$tagsField'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| Get comments for a post | Get comments for a post |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$postId'' | ''(untyped)'' | //required// | //none// | | | ''$postId'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |