Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:utility:ghostimporter

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:utility:ghostimporter [2026/09/26 09:09] – admin adminscriptlog:lib:utility:ghostimporter [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)'' | ''$data'' |  | 18 | 
 +| ''private'' | ''(untyped)'' | ''$schema'' |  | 19 |
  
 ======= Methods (12) ======= ======= Methods (12) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 21 | +| public | ''__construct()'' | (undocumented) | 21 | 
-  | public | ''parse()'' | Parse JSON file from string | 34 | +| public | ''parse()'' | Parse JSON file from string | 34 | 
-  | private | ''detectSchema()'' | Detect Ghost schema version | 56 | +| private | ''detectSchema()'' | Detect Ghost schema version | 56 | 
-  | public | ''getSchema()'' | Get detected schema version | 78 | +| public | ''getSchema()'' | Get detected schema version | 78 | 
-  | public | ''getSiteInfo()'' | Get site information | 88 | +| public | ''getSiteInfo()'' | Get site information | 88 | 
-  | public | ''getPosts()'' | Extract all posts/pages from Ghost export | 113 | +| public | ''getPosts()'' | Extract all posts/pages from Ghost export | 113 | 
-  | private | ''extractComments()'' | Extract comments from post | 238 | +| private | ''extractComments()'' | Extract comments from post | 238 | 
-  | public | ''getTags()'' | Extract tags from Ghost export | 269 | +| public | ''getTags()'' | Extract tags from Ghost export | 269 | 
-  | public | ''getCategories()'' | Extract categories from Ghost export | 302 | +| public | ''getCategories()'' | Extract categories from Ghost export | 302 | 
-  | private | ''mapPostStatus()'' | Map Ghost post status to Blogware status | 339 | +| private | ''mapPostStatus()'' | Map Ghost post status to Blogware status | 339 | 
-  | private | ''mapCommentStatus()'' | Map Ghost comment status to Blogware status | 357 | +| private | ''mapCommentStatus()'' | Map Ghost comment status to Blogware status | 357 | 
-  | private | ''formatDate()'' | Format date string | 374 |+| private | ''formatDate()'' | Format date string | 374 |
  
  
Line 71: Line 73:
 Parse JSON file from string Parse JSON 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 149: Line 151:
 Extract comments from post Extract comments from post
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$post'' | ''(untyped)'' | //required// | //none// |+|  ''$post'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 195: Line 197:
 Map Ghost post status to Blogware status Map Ghost 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 211: Line 213:
 Map Ghost comment status to Blogware status Map Ghost 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 227: Line 229:
 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
scriptlog/lib/utility/ghostimporter.1790413763.txt.gz · Last modified: by admin