Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:utility:wordpressexporter

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:utility:wordpressexporter [2026/09/26 09:09] – admin adminscriptlog:lib:utility:wordpressexporter [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 (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 |
  
  
Line 68: Line 70:
 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
Line 87: Line 89:
 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
Line 118: Line 120:
 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
Line 134: Line 136:
 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
Line 150: Line 152:
 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
Line 166: Line 168:
 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
scriptlog/lib/utility/wordpressexporter.1790413763.txt.gz · Last modified: by admin