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_CONNECTION_TIMEOUT

E_GENERAL_CONNECTION_ERROR

Properties

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

Methods

setApplication(Application $application)

Set the application object.

isConnected()

No description

string|null
get($url)

Get the contents of a URL

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 
getAvailableMarketplaceItems($filterInstalled = true)

No description

getConnectionError()

No description

getSitePageURL()

No description

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

No description

hasConnectionError()

No description

bool|string
generateSiteToken()

No description

static 
getSiteToken()

No description

getSiteURL()

No description

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

No description

Details

setApplication(Application $application)

Set the application object.

Parameters

Application $application

isConnected()

No description

private string|null get($url)

Get the contents of a URL

Parameters

$url

Return Value

string|null

static Marketplace|Marketplace getInstance()

No description

Return Value

Marketplace|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 getAvailableMarketplaceItems($filterInstalled = true)

No description

Parameters

$filterInstalled

getConnectionError()

No description

getSitePageURL()

No description

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

No description

Parameters

$width
$height
$completeURL
$connectMethod

hasConnectionError()

No description

bool|string generateSiteToken()

No description

Return Value

bool|string

static getSiteToken()

No description

getSiteURL()

No description

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

No description

Parameters

$mp
$width
$height