Documentation

CRMTraits_Profile_ProfileTrait

Trait PriceSetTrait

Trait for working with Price Sets in tests

Table of Contents

Methods

createJoinedProfile()  : mixed
Add a profile to a contribution page.
createProfile()  : int
Create a profile.
eliminateUFGroupOne()  : mixed
Ensure we don't have a profile with the id or one to ensure that we are not casting an array to it.
restoreUFGroupOne()  : mixed
Bring back UF group one.

Methods

createJoinedProfile()

Add a profile to a contribution page.

protected createJoinedProfile(array<string|int, mixed> $joinParams[, array<string|int, mixed> $ufGroupParams = [] ]) : mixed
Parameters
$joinParams : array<string|int, mixed>

Must contain entity_id at minimum.

$ufGroupParams : array<string|int, mixed> = []

createProfile()

Create a profile.

protected createProfile(mixed $ufGroupParams) : int
Parameters
$ufGroupParams : mixed
Return values
int

eliminateUFGroupOne()

Ensure we don't have a profile with the id or one to ensure that we are not casting an array to it.

protected eliminateUFGroupOne() : mixed

restoreUFGroupOne()

Bring back UF group one.

protected restoreUFGroupOne() : mixed

        
On this page

Search results