Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:utility:ghostexporter

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:utility:ghostexporter [2026/09/26 09:09] – admin adminscriptlog:lib:utility:ghostexporter [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 (2) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private'' | ''(untyped)'' | ''$siteUrl'' |  | 18 | 
 +| ''private'' | ''(untyped)'' | ''$siteTitle'' |  | 19 |
  
 ======= Methods (11) ======= ======= Methods (11) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 21 | +| public | ''__construct()'' | (undocumented) | 21 | 
-  | public | ''export()'' | Export content to Ghost JSON format | 38 | +| public | ''export()'' | Export content to Ghost JSON format | 38 | 
-  | private | ''getUsers()'' | Get users for export | 173 | +| private | ''getUsers()'' | Get users for export | 173 | 
-  | private | ''getTags()'' | Get tags for export | 200 | +| private | ''getTags()'' | Get tags for export | 200 | 
-  | private | ''getPosts()'' | Get posts for export | 218 | +| private | ''getPosts()'' | Get posts for export | 218 | 
-  | private | ''getPages()'' | Get pages for export | 261 | +| private | ''getPages()'' | Get pages for export | 261 | 
-  | private | ''getPostComments()'' | Get comments for a post | 296 | +| private | ''getPostComments()'' | Get comments for a post | 296 | 
-  | private | ''mapUserRole()'' | Map Blogware user level to Ghost role | 315 | +| private | ''mapUserRole()'' | Map Blogware user level to Ghost role | 315 | 
-  | private | ''mapPostStatus()'' | Map Blogware post status to Ghost status | 335 | +| private | ''mapPostStatus()'' | Map Blogware post status to Ghost status | 335 | 
-  | private | ''convertHtmlToMarkdown()'' | Convert HTML to Markdown (simplified) | 353 | +| private | ''convertHtmlToMarkdown()'' | Convert HTML to Markdown (simplified) | 353 | 
-  | private | ''generateUuid()'' | Generate a UUID-like string | 365 |+| private | ''generateUuid()'' | Generate a UUID-like string | 365 |
  
  
Line 70: Line 72:
 Export content to Ghost JSON format Export content to Ghost JSON 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 Ghost JSON content **Returns:** ''(none declared)'' — string Ghost JSON content
Line 89: Line 91:
 Get users for export Get users 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 120: Line 122:
 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 136: Line 138:
 Get pages for export Get pages 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 152: Line 154:
 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
Line 168: Line 170:
 Map Blogware user level to Ghost role Map Blogware user level to Ghost role
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$userLevel'' | ''(untyped)'' | //required// | //none// |+|  ''$userLevel'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 184: Line 186:
 Map Blogware post status to Ghost status Map Blogware post status to Ghost status
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postStatus'' | ''(untyped)'' | //required// | //none// |+|  ''$postStatus'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 200: Line 202:
 Convert HTML to Markdown (simplified) Convert HTML to Markdown (simplified)
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$html'' | ''(untyped)'' | //required// | //none// |+|  ''$html'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
scriptlog/lib/utility/ghostexporter.1790413763.txt.gz · Last modified: by admin