PHP Класс Apple_Actions\Index\Export

Наследование: extends Apple_Actions\Action
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
fetch_content_settings ( ) : Settings Loads settings for the Exporter_Content from the WordPress post metadata.

Описание методов

__construct() публичный метод

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

fetch_exporter() публичный метод

Fetches an instance of Exporter.
public fetch_exporter ( ) : Exporter
Результат Apple_Exporter\Exporter

format_byline() публичный метод

Formats the byline
С версии: 1.2.0
public format_byline ( WP_Post $post, string $author = '', string $date = '' ) : string
$post WP_Post
$author string
$date string
Результат string

perform() публичный метод

Perform the export and return the results.
public perform ( ) : string
Результат string The JSON data