Property | Type | Description | |
---|---|---|---|
$package | The transport package Extracted from the \modX instance. |
Property | Type | Description | |
---|---|---|---|
$required | Defines the arguments required for the Push action. |
Method | Description | |
---|---|---|
process ( ) | Process the Extract action. |
Method | Description | |
---|---|---|
createPackage ( string $name, string $version, string $release = '' ) : Teleport\Transport\Transport | Create a Transport package to store extracted data into. | |
createVehicles ( object $vehicle ) : integer | Create \xPDOVehicle instances from MODX assets and data to go into the Snapshot. | |
getName ( ) : string | Get a package name for this snapshot. | |
getSequence ( ) : string | Get a package sequence for this snapshot. | |
getVersion ( ) : string | Get a package version for this snapshot. | |
loadTpl ( string $tpl ) : array | Load the JSON extract tpl data into a PHP array. | |
prepareTpl ( string &$content ) | Parse the tpl replacing placeholders from the profile and request arguments. |
protected createPackage ( string $name, string $version, string $release = '' ) : Teleport\Transport\Transport | ||
$name | string | The name of the package to create. |
$version | string | The version of the package to create. |
$release | string | The release of the package to create. |
return | Teleport\Transport\Transport | A new Transport instance with a signature compiled from name, version, and release. |
protected createVehicles ( object $vehicle ) : integer | ||
$vehicle | object | A vehicle definition from the Extract tpl being applied. |
return | integer | The number of vehicles created from the definition. |
protected getSequence ( ) : string | ||
return | string | The package sequence string. |
protected getVersion ( ) : string | ||
return | string | The package version string. |
protected prepareTpl ( string &$content ) | ||
$content | string | The content of the tpl. |