core/model/modx/transport/modtransportvehicle.class.php

Show: inherited
Table of Contents

Package
modx  
Subpackage
transport  

\modTransportVehicle

Package: modx\transport

Abstracts the vehicle construct for package building.

Properties

Propertypublicarray  $attributes= ''

The collection of attributes to attach to the vehicle.
Details
Type
array
Access
public  
Propertypublicmixed  $obj= ''

The actual object or artifact payload that the vehicle represents.
Details
Type
mixed
Access
public  
Propertypublicarray  $resolvers= ''

The collection of dependencies to resolve post-install/upgrade.
Details
Type
array
Access
public  
Propertypublicstring  $validators= ''

The collection of dependences to validate against pre-install/upgrade.
Details
Type
string
Access
public  

Methods

methodpublic__construct( mixed $obj, array $attr = array () ) : void

Creates an instance of the modTransportVehicle class.

Parameters
Name Type Description
$obj mixed

The object that the vehicle represents.

$attr array

An array of attributes for the object.

methodpubliccompile( ) : array

Compiles the attributes array to pass on to the modPackageBuilder instance.

Returns
Type Description
array An array of added attributes.
Details
Access
public  
methodpublicfetch( ) : mixed

Returns the artifact payload associated with the vehicle.

Returns
Type Description
mixed The payload for this vehicle.
Details
Access
public  
methodpublicresolve( string $type, array $options ) : array

Adds a post-save resolver to the vehicle.

Parameters
Name Type Description
$type string

The type of resolver (php,file,etc)

$options array

An array of options for the resolver.

Returns
Type Description
array The added resolver.
Details
Access
public  
methodpublicvalidate( string $type, array $options ) : array

Adds a pre-creation validator to the vehicle.

Parameters
Name Type Description
$type string

The type of validator (php,file,etc)

$options array

An array of options for the validator.

Returns
Type Description
array The added validator.
Details
Access
public  
Documentation was generated by DocBlox 0.18.1.