PHP Class Apple_Actions\Index\Export

Inheritance: extends Apple_Actions\Action
Mostra file Open project: alleyinteractive/apple-news Class Usage Examples

Public Methods

Method Description
__construct ( Settings $settings, integer $id = null ) Constructor.
fetch_exporter ( ) : Exporter Fetches an instance of Exporter.
format_byline ( WP_Post $post, string $author = '', string $date = '' ) : string Formats the byline
perform ( ) : string Perform the export and return the results.

Private Methods

Method Description
fetch_content_settings ( ) : Settings Loads settings for the Exporter_Content from the WordPress post metadata.

Method Details

__construct() public method

Constructor.
public __construct ( Settings $settings, integer $id = null )
$settings Settings
$id integer

fetch_exporter() public method

Fetches an instance of Exporter.
public fetch_exporter ( ) : Exporter
return Apple_Exporter\Exporter

format_byline() public method

Formats the byline
Since: 1.2.0
public format_byline ( WP_Post $post, string $author = '', string $date = '' ) : string
$post WP_Post
$author string
$date string
return string

perform() public method

Perform the export and return the results.
public perform ( ) : string
return string The JSON data