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
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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