Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:utility:wordpressimporter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:utility:wordpressimporter [2026/09/26 09:09] – admin adminscriptlog:lib:utility:wordpressimporter [2026/09/26 09:34] (current) – admin admin
Line 14: Line 14:
 ======= 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 =======
Line 29: Line 29:
 //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 |
  
  
Line 70: Line 74:
 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
Line 148: Line 152:
 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
Line 165: Line 169:
 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
Line 181: Line 185:
 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
Line 197: Line 201:
 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
Line 213: Line 217:
 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
scriptlog/lib/utility/wordpressimporter.1790413763.txt.gz · Last modified: by admin