| Next revision | Previous revision |
| scriptlog:lib:utility:ghostexporter [2026/09/26 09:09] – admin admin | scriptlog:lib:utility:ghostexporter [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 (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 | |
| |
| |
| 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 |
| 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 |
| 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 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 |
| 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 |
| 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 |
| 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 |
| 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 |