PHP Класс Apple_Exporter\Workspace

For WordPress, this is entirely handled using meta fields since the filesystem is unavailable on WordPress VIP and potentially other enterprise WordPress hosts.
С версии: 0.2.0
Автор: Federico Ramirez
Автор: Bradford Campeau-Laurion
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$content_id integer Current ID of the content we are constructing a workspace for.

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

Метод Описание
__construct ( integer $content_id ) Initialize.
bundle_source ( string $filename, string $source ) Adds a source file to be included later in the bundle.
clean_up ( ) Delete all bundle data from the post.
get_bundles ( ) : array Gets any bundles.
get_errors ( ) : array Gets errors encountered during publishing.
get_json ( ) : string Gets the JSON content.
log_error ( string $key, string $value ) Logs errors encountered during publishing.
write_json ( string $content ) Stores the JSON file for this workspace to be included in the bundle.

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

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

Initialize.
С версии: 0.2.0
public __construct ( integer $content_id )
$content_id integer

bundle_source() публичный Метод

Adds a source file to be included later in the bundle.
С версии: 0.9.0
public bundle_source ( string $filename, string $source )
$filename string
$source string

clean_up() публичный Метод

Delete all bundle data from the post.
С версии: 0.2.0
public clean_up ( )

get_bundles() публичный Метод

Gets any bundles.
С версии: 0.9.0
public get_bundles ( ) : array
Результат array

get_errors() публичный Метод

Gets errors encountered during publishing.
С версии: 1.0.6
public get_errors ( ) : array
Результат array

get_json() публичный Метод

Gets the JSON content.
С версии: 0.9.0
public get_json ( ) : string
Результат string

log_error() публичный Метод

Logs errors encountered during publishing.
С версии: 1.0.6
public log_error ( string $key, string $value )
$key string
$value string

write_json() публичный Метод

Stores the JSON file for this workspace to be included in the bundle.
С версии: 0.9.0
public write_json ( string $content )
$content string

Описание свойств

$content_id публичное свойство

Current ID of the content we are constructing a workspace for.
С версии: 0.9.0
public int $content_id
Результат integer