class Marketplace implements ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Constants

E_INVALID_BASE_URL

E_MARKETPLACE_SUPPORT_MANUALLY_DISABLED

E_UNRECOGNIZED_SITE_TOKEN

E_DELETED_SITE_TOKEN

E_SITE_TYPE_MISMATCH_MULTISITE

E_CONNECTION_TIMEOUT

E_GENERAL_CONNECTION_ERROR

Properties

protected Application $app from  ApplicationAwareTrait
protected $isConnected
protected bool|int $connectionError
protected Repository $config
protected Repository $databaseConfig
protected File $fileHelper
protected PathUrlResolver $urlResolver
protected Request $request

Methods

setApplication(Application $application)

Set the application object.

bool
isConnected()

No description

static Marketplace
getInstance()

No description

static int|mixed|string
downloadRemoteFile($file)

No description

static 
checkPackageUpdates()

Runs through all packages on the marketplace, sees if they're installed here, and updates the available version number for them.

static array
getAvailableMarketplaceItems($filterInstalled = true)

No description

getConnectionError()

No description

string
getSitePageURL()

No description

string
getMarketplaceFrame($width = '100%', $height = '300', $completeURL = false, $connectMethod = 'view')

No description

bool
hasConnectionError()

No description

generateSiteToken()

No description

static 
getSiteToken()

No description

string
getSiteURL()

No description

string
getMarketplacePurchaseFrame($mp, $width = '100%', $height = '530')

No description

string|null
get($url)

Get the contents of a URL.

Details

setApplication(Application $application)

Set the application object.

Parameters

Application $application

bool isConnected()

No description

Return Value

bool

static Marketplace getInstance()

No description

Return Value

Marketplace

static int|mixed|string downloadRemoteFile($file)

No description

Parameters

$file

Return Value

int|mixed|string

static checkPackageUpdates()

Runs through all packages on the marketplace, sees if they're installed here, and updates the available version number for them.

static array getAvailableMarketplaceItems($filterInstalled = true)

No description

Parameters

$filterInstalled

Return Value

array

getConnectionError()

No description

string getSitePageURL()

No description

Return Value

string

string getMarketplaceFrame($width = '100%', $height = '300', $completeURL = false, $connectMethod = 'view')

No description

Parameters

$width
$height
$completeURL
$connectMethod

Return Value

string

bool hasConnectionError()

No description

Return Value

bool

generateSiteToken()

No description

static getSiteToken()

No description

string getSiteURL()

No description

Return Value

string

string getMarketplacePurchaseFrame($mp, $width = '100%', $height = '530')

No description

Parameters

$mp
$width
$height

Return Value

string

private string|null get($url)

Get the contents of a URL.

Parameters

$url

Return Value

string|null