class ExportController extends BaseController

Export controller handles generation and syncing of content exports. Exports are generally only used by external plugins (see ICML export).

Properties

static boolean $batchMode Controller is in batch mode from BaseController
static array $batchedResponses Stack for batched responses from BaseController

Methods

int
getStatusCode()

Return status code

array
getHeaders()

Return current headers

string
getPayload()

Return payload

setStatusCode(int $code)

Set status code

setHeaders(string $key, string $value)

Set header value

setPayload(string $payload)

Set payload

static 
startBatchMode()

Static method to enable batch mode return handling

static 
endBatchMode()

Static method to disable batch mode return handling

array
getAction($content_id)

Create a new export.

array
versionsAction($content_id)

Get export versions.

array
versionAction($content_uuid, $version_id)

Get single export version

array
dumpAction(string $content_id, string $type)

Dump content as type, does not create an export object or new version

updateAction($content_id)

No description

pullAction($content_id)

No description

pushAction($content_id)

No description

lockAction($content_id)

No description

unlockAction($content_id)

No description

Details

in BaseController at line line 60
int getStatusCode()

Return status code

Return Value

int

in BaseController at line line 69
array getHeaders()

Return current headers

Return Value

array

in BaseController at line line 78
string getPayload()

Return payload

Return Value

string

in BaseController at line line 87
setStatusCode(int $code)

Set status code

Parameters

int $code HTTP status code

in BaseController at line line 97
setHeaders(string $key, string $value)

Set header value

Parameters

string $key Header name
string $value Header value

in BaseController at line line 106
setPayload(string $payload)

Set payload

Parameters

string $payload

in BaseController at line line 294
static startBatchMode()

Static method to enable batch mode return handling

in BaseController at line line 302
static endBatchMode()

Static method to disable batch mode return handling

at line line 24
array getAction($content_id)

Create a new export.

Parameters

$content_id

Return Value

array

at line line 56
array versionsAction($content_id)

Get export versions.

Parameters

$content_id

Return Value

array

at line line 78
array versionAction($content_uuid, $version_id)

Get single export version

Parameters

$content_uuid
$version_id

Return Value

array

at line line 102
array dumpAction(string $content_id, string $type)

Dump content as type, does not create an export object or new version

Parameters

string $content_id content_uuid
string $type type

Return Value

array

at line line 146
updateAction($content_id)

Parameters

$content_id

at line line 170
pullAction($content_id)

Parameters

$content_id

at line line 196
pushAction($content_id)

Parameters

$content_id

at line line 226
lockAction($content_id)

Parameters

$content_id

at line line 257
unlockAction($content_id)

Parameters

$content_id