Method | Description | |
---|---|---|
__construct ( apple_exporter\Exporter_Content $content, |
Constructor. | |
export ( ) : string | Based on the content this instance holds, create an Article Format bundle. | |
generate ( ) | Generates JSON for the article.json file. By doing this, all attachments get added to the workspace/tmp directory automatically. | |
get_bundles ( ) : array | Get the bundles from the workspace. | |
get_content ( ) : apple_exporter\Exporter_Content | Get the Exporter_Content object | |
get_errors ( ) : array | Get the errors from the workspace. | |
get_json ( ) : string | Get the JSON output from the workspace. | |
initialize_builders ( array $builders = null ) | An ordered hash of builders. They will be executed in order when building the JSON array. | |
workspace ( ) : |
Gets the instance of the current workspace. |
Method | Description | |
---|---|---|
build_article_style ( ) : array | Build the article style. | |
clean_workspace ( ) | Clean up the current workspace. | |
content_id ( ) : integer | Get the content ID. | |
content_title ( ) : string | Get the content title. | |
generate_json ( ) : string | Generate article.json contents. It does so by looping though all data, generating valid JSON and adding attachments to workspace/tmp directory. | |
get_builder ( string $name ) : Builder | Get a builder. | |
register_builder ( string $name, Builder $builder ) | Register a builder. | |
write_json ( $content ) | Write the JSON output to the Workspace. |
public __construct ( apple_exporter\Exporter_Content $content, |
||
$content | apple_exporter\Exporter_Content | |
$workspace | ||
$settings |
public generate ( ) |
public get_bundles ( ) : array | ||
return | array |
public get_content ( ) : apple_exporter\Exporter_Content | ||
return | apple_exporter\Exporter_Content |
public get_errors ( ) : array | ||
return | array |
public initialize_builders ( array $builders = null ) | ||
$builders | array |
public workspace ( ) : |
||
return |