Свойство | Тип | Описание | |
---|---|---|---|
$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. |
public __construct ( integer $content_id ) | ||
$content_id | integer |
public bundle_source ( string $filename, string $source ) | ||
$filename | string | |
$source | string |
public get_errors ( ) : array | ||
Результат | array |
public write_json ( string $content ) | ||
$content | string |
public int $content_id | ||
Результат | integer |