core/model/modx/transport/modtransportmanager.class.php
- Package
- modx
- Subpackage
- transport
\modTransportManager
Package: modx\transport
Properties
array
$config= 'array ()'
The configuration array for the TransportManager.
Default value
array ()
Details- Type
- array
\modWorkspace
$workspace= 'null'
The active MODX workspace.
Default value
null
Details- Type
- \modWorkspace
Methods
__construct(
\xPDO $modx
)
:
\modTransportManager
Creates an instance of the modTransportManager class.
Parameters
Returns
Name | Type | Description |
---|---|---|
$modx | \xPDO | &$modx A reference to a modX instance. |
Type | Description |
---|---|
\modTransportManager |
changeActiveWorkspace(
integer $workspaceId
)
:
\modWorkspace
Change the active workspace in MODX.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$workspaceId | integer | The PK of the modWorkspace. |
Type | Description |
---|---|
\modWorkspace |
- Access
- public
getActiveWorkspace(
)
:
\modWorkspace
Get the active workspace for the MODX installation.
Returns
Details
Type | Description |
---|---|
\modWorkspace |
- Access
- public
getProviders(
boolean $refresh
=
false
)
:
array
Get a list of providers for the transports.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$refresh | boolean | If true, refresh the list of providers. Defaults to false. |
Type | Description |
---|---|
array | A list of providers. |
- Access
- public
scanForPackages(
)
:
array
Scans all providers for a list of packages.
Returns
Details
Type | Description |
---|---|
array | An array of packages. |
- Access
- public