model/modx/transport/modtransportmanager.class.php

Classes 
package
modx
subpackage
transport
Classes
modTransportManager

Description

\modTransportManager

package
modx
subpackage
transport
Properties
$config
$modx
$providers
$workspace
Methods
__construct
changeActiveWorkspace
getActiveWorkspace
getProviders
scanForPackages
scanForUpdates

Description

Properties

$configThe configuration array for the TransportManager.

array $config = 'array'

Details

array
The configuration array for the TransportManager.
visibility
public
default
array
final
false
static
false

$modxA reference to the MODX object.

\MODX $modx = 'null'

Details

\MODX
A reference to the MODX object.
visibility
public
default
null
final
false
static
false

$providersAn array of active providers.

array $providers = 'array'

Details

array
An array of active providers.
visibility
public
default
array
final
false
static
false

$workspaceThe active MODX workspace.

\modWorkspace $workspace = 'null'

Details

\modWorkspace
The active MODX workspace.
visibility
public
default
null
final
false
static
false

Methods

__construct

__construct( \xPDO $modx ) : \modTransportManager

Creates an instance of the modTransportManager class.

Arguments
$modx
\xPDO
&$modx A reference to a modX instance.
Details
visibility
public
final
false
static
false

changeActiveWorkspace

changeActiveWorkspace( integer $workspaceId ) : \modWorkspace

Change the active workspace in MODX.

Arguments
$workspaceId
integer
The PK of the modWorkspace.
Output
\modWorkspace
Details
visibility
public
final
false
static
false
access
public

getActiveWorkspace

getActiveWorkspace( ) : \modWorkspace

Get the active workspace for the MODX installation.

Output
\modWorkspace
Details
visibility
public
final
false
static
false
access
public

getProviders

getProviders( boolean $refresh = false ) : array

Get a list of providers for the transports.

Arguments
$refresh
boolean
If true, refresh the list of providers. Defaults to false.
Output
array
A list of providers.
Details
visibility
public
final
false
static
false
access
public

scanForPackages

scanForPackages( ) : array

Scans all providers for a list of packages.

Output
array
An array of packages.
Details
visibility
public
final
false
static
false
access
public

scanForUpdates

scanForUpdates( ) : array

Scans all providers for a list of updates for all packages.

Output
array
An array of updates for packages.
Details
visibility
public
final
false
static
false
access
public
Documentation was generated by DocBlox 0.11.2.