PHP Class Apple_Actions\Index\Export

Inheritance: extends Apple_Actions\Action
Afficher le fichier Open project: alleyinteractive/apple-news Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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

fetch_exporter() public méthode

Fetches an instance of Exporter.
public fetch_exporter ( ) : Exporter
Résultat Apple_Exporter\Exporter

format_byline() public méthode

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
Résultat string

perform() public méthode

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