model/modx/transport/modtransportmanager.class.php
- 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
$config
array $config = 'array'
Details
- array
The configuration array for the TransportManager. - visibility
- public
- default
- array
- final
- false
- static
- false
$modx
\MODX $modx = 'null'
Details
- \MODX
A reference to the MODX object. - visibility
- public
- default
- null
- final
- false
- static
- false
$providers
array $providers = 'array'
Details
- array
An array of active providers. - visibility
- public
- default
- array
- final
- false
- static
- false
$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.
Output
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
Details
- visibility
- public
- final
- false
- static
- false
- access
- public
getActiveWorkspace
getActiveWorkspace(
)
:
\modWorkspace
Get the active workspace for the MODX installation.
Output
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