Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:utility:blogspotexporter

BlogspotExporter

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

Docblock Metadata

Tag Value
@category Utility
@author M.Noermoehammad
@license MIT
@version 1.0
@since Since Release 1.0

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (2)

Visibility Type Name Default Line
private (untyped) $siteUrl 18
private (untyped) $siteTitle 19

Methods (6)

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

__construct()

public function __construct()

lines 21–28 (8)

Takes no parameters.

export()

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

getPosts()

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

getPostComments()

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

getCategories()

private function getCategories()

lines 193–203 (11)

Get categories for export

Takes no parameters.

Returns: (none declared) — array

getPostTagsAsString()

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.

scriptlog/lib/utility/blogspotexporter.txt · Last modified: by admin