Layer: Utility · Source: lib/utility/export-blogspot.php:16 (lines 16–223)
class BlogspotExporter
Blogspot Exporter Utility
Exports Blogware content to Blogspot/Blogger XML format
| Tag | Value |
|---|---|
@category | Utility |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
No parent, interface or trait. This is a root type.
None.
| Visibility | Type | Name | Default | Line |
|---|---|---|---|---|
private | (untyped) | $siteUrl | 18 | |
private | (untyped) | $siteTitle | 19 |
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | __construct() | (undocumented) | 21 |
| public | export() | Export content to Blogspot XML format | 38 |
| private | getPosts() | Get posts for export | 135 |
| private | getPostComments() | Get comments for a post | 175 |
| private | getCategories() | Get categories for export | 193 |
| private | getPostTagsAsString() | Convert post_tags field to array of tags | 211 |
public function __construct()
lines 21–28 (8)
Takes no parameters.
public function export(&$exportStats, $authorId = null)
lines 38–127 (90)
Export content to Blogspot XML format
| Parameter | Type | Default | Description |
|---|---|---|---|
$exportStats (by reference) | (untyped) | required | Reference to stats array to update |
$authorId | (untyped) | null | Filter by author ID (null for all) |
Returns: (none declared) — string Blogspot XML content
Throws: ExportException
private function getPosts($authorId = null)
lines 135–167 (33)
Get posts for export
| Parameter | Type | Default | Description |
|---|---|---|---|
$authorId | (untyped) | null | none |
Returns: (none declared) — array
private function getPostComments($postId)
lines 175–186 (12)
Get comments for a post
| Parameter | Type | Default | Description |
|---|---|---|---|
$postId | (untyped) | required | none |
Returns: (none declared) — array
private function getCategories()
lines 193–203 (11)
Get categories for export
Takes no parameters.
Returns: (none declared) — array
private function getPostTagsAsString($tagsField)
lines 211–222 (12)
Convert post_tags field to array of tags
| Parameter | Type | Default | Description |
|---|---|---|---|
$tagsField | (untyped) | required | none |
Returns: (none declared) — array
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.