class SpecGatherer

Properties

protected SpecProviderInterface[] $specProviders
protected CRM_Core_DAO[] $DAONames A cache of DAOs based on entity

Methods

getSpec(string $entity, string $action, $includeCustom)

Returns a RequestSpec with all the fields available. Uses spec providers to add or modify field specifications.

addSpecProvider(SpecProviderInterface $provider)

No description

Details

at line 69
RequestSpec getSpec(string $entity, string $action, $includeCustom)

Returns a RequestSpec with all the fields available. Uses spec providers to add or modify field specifications.

For an example see CustomFieldSpecProvider.

Parameters

string $entity
string $action
$includeCustom

Return Value

RequestSpec

at line 103
addSpecProvider(SpecProviderInterface $provider)

Parameters

SpecProviderInterface $provider