Site Config

Depreciated

These Dijon Platform site configuration methods are depreciated and have been replaced with functionality that can be controlled in the Dijon Platform administration dashboard.

setCampaigns

This configuration option is retained for compatibility but does not do anything.

setComponents

This is used for A/B testing. It is only configurable by us at Dijon Platform.

setDefaultMandrillCredential

This sets the default Mandrill credential name. The credentials are stored and maintained in the Administration system. This is simply used to set the name of the credentials to use by default.

It's a good idea to leave this as "default" and name your default Mandrill credentials "default". But if you ever need to change that you now know how.

Example
$config->setDefaultMandrillCredential('default');

setDefaultPaypalCredentialName

This configuration option is retained for compatibility but does not do anything.

setDefaultPaypalRestCredentialName

This sets the default PayPal Rest credential name. The credentials are stored and maintained in the Administration system. This is simply used to set the name of the credentials to use by default.

It's a good idea to leave this as "default" and name your default PayPal Rest credentials "default". But if you ever need to change that you now know how.

Example
$config->setDefaultPaypalRestCredentialName('default');

setDefaultStripeCredential

This sets the default Stripe credential name. The credentials are stored and maintained in the Administration system. This is simply used to set the name of the credentials to use by default.

It's a good idea to leave this as "default" and name your default Stripe credentials "default". But if you ever need to change that you now know how.

Example
$config->setDefaultStripeCredential('default');

setDonationAmounts

This functionality been superseded and will be removed in a future version of Dijon Platform.

Sets the default donation amounts used for one-off donations. This functionality has been superseded by setNamedDonationAmounts.

Example
$config->setDonationAmounts([
    'GBP' => [ 5, 10, 15, 20, 25],
    'EUR' => [10, 20, 30, 40, 50]
]);

setMandrillConfig

This functionality been superseded and will be removed in a future version of Dijon Platform.

Sets a default Mandrill configuration. Mandrill configurations per can be set on a per form basis which is probably what you want to do instead of this.

Example
$config->setMandrillConfig([
    'template_name' => 'donate',
    'subject' => 'Thank you so much!',
    'from_address' => 'donations@example.com',
    'from_name' => 'Steve Smith'
]);

setSubscriptionAmounts

Sets the default donation amounts used for subscriptions. This functionality has been superseded by setNamedDonationAmounts.

Example
$config->setSubscriptionAmounts([
    'GBP' => [ 5, 10, 15, 20, 25],
    'EUR' => [10, 20, 30, 40, 50]
]);

setTotaliserConfig

More information about totalisers can be found in the Totalisers documentation.

Example
$config->setTotaliserConfig($totaliserConfig);

setTotaliserDonationAdjustments

More information about totalisers can be found in the Totalisers documentation.

setTotaliserLeadGenAdjustments

More information about totalisers can be found in the Totalisers documentation.

setUseCampaigns

Enables the management of URLs by the Dijon Platform campaign system. This should be set to true unless you are working on a legacy Dijon site.

On this page