Copied!

ConnectionConfig

ConnectionConfig.php : 16
Read-only
Final

Connection settings of a single Quable instance, as resolved for the current SiteAccess scope.

Constants

publicAPI_TOKEN

ConnectionConfig.php : 19
public string API_TOKEN = 'api_token'

publicCHANNEL_CODE

ConnectionConfig.php : 20
public string CHANNEL_CODE = 'channel_code'

publicINSTANCE_URL

ConnectionConfig.php : 18
public string INSTANCE_URL = 'instance_url'

publicLANGUAGE_MAP

ConnectionConfig.php : 22
public string LANGUAGE_MAP = 'language_map'

publicWEBHOOK_SECRET

ConnectionConfig.php : 21
public string WEBHOOK_SECRET = 'webhook_secret'

Methods

public__construct()

ConnectionConfig.php : 27
public __construct([string|null $instanceUrl = null ][, string|null $apiToken = null ][, string|null $channelCode = null ][, string|null $webhookSecret = null ][, array<string, string> $languageMap = [] ])

Parameters

Name Type Default value Description
$instanceUrl string|null null -
$apiToken string|null null -
$channelCode string|null null -
$webhookSecret string|null null -
$languageMap array<string, string> []

Mapping of Ibexa DXP language codes to Quable locale codes

publicgetApiToken()

ConnectionConfig.php : 58
public getApiToken() : string

Return values

string

Tags
Throws
ConnectionNotConfiguredException

publicgetChannelCode()

ConnectionConfig.php : 66
public getChannelCode() : string

Return values

string

Tags
Throws
ConnectionNotConfiguredException

publicgetIdentityHash()

ConnectionConfig.php : 95

Identifies the Quable instance and channel the data comes from, e.g. to keep cache entries apart.

public getIdentityHash() : string

Return values

string

publicgetInstanceUrl()

ConnectionConfig.php : 50
public getInstanceUrl() : string

Return values

string

Tags
Throws
ConnectionNotConfiguredException

publicgetLanguageMap()

ConnectionConfig.php : 82
public getLanguageMap() : array<string, string>

Return values

array<string, string>

publicgetQuableLocale()

ConnectionConfig.php : 87
public getQuableLocale(string $languageCode) : string|null

Parameters

Name Type Default value Description
$languageCode string - -

Return values

string|null

publicgetWebhookSecret()

ConnectionConfig.php : 74

Returns null when webhooks are not configured, in which case every webhook request must be rejected.

public getWebhookSecret() : string|null

Return values

string|null

publicisConfigured()

ConnectionConfig.php : 40

Whether all settings required to talk to the Quable API are present.

public isConfigured() : bool

Return values

bool