PHP Класс Teleport\Action\Extract

Наследование: extends Teleport\Action\Action
Показать файл Открыть проект

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

Свойство Тип Описание
$package The transport package Extracted from the \modX instance.

Защищенные свойства (Protected)

Свойство Тип Описание
$required Defines the arguments required for the Push action.

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

Метод Описание
process ( ) Process the Extract action.

Защищенные методы

Метод Описание
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.

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

createPackage() защищенный Метод

Create a Transport package to store extracted data into.
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.
Результат Teleport\Transport\Transport A new Transport instance with a signature compiled from name, version, and release.

createVehicles() защищенный Метод

Create \xPDOVehicle instances from MODX assets and data to go into the Snapshot.
protected createVehicles ( object $vehicle ) : integer
$vehicle object A vehicle definition from the Extract tpl being applied.
Результат integer The number of vehicles created from the definition.

getName() защищенный Метод

Get a package name for this snapshot.
protected getName ( ) : string
Результат string The package name.

getSequence() защищенный Метод

Get a package sequence for this snapshot.
protected getSequence ( ) : string
Результат string The package sequence string.

getVersion() защищенный Метод

Get a package version for this snapshot.
protected getVersion ( ) : string
Результат string The package version string.

loadTpl() защищенный Метод

Load the JSON extract tpl data into a PHP array.
protected loadTpl ( string $tpl ) : array
$tpl string A valid stream or file location for the tpl.
Результат array An array of the tpl data.

prepareTpl() защищенный Метод

Parse the tpl replacing placeholders from the profile and request arguments.
protected prepareTpl ( string &$content )
$content string The content of the tpl.

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

Process the Extract action.
public process ( )

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

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

The transport package Extracted from the \modX instance.
public $package

$required защищенное свойство

Defines the arguments required for the Push action.
protected $required