__construct()
__construct(array<mixed,\FACTFinder\Data\Campaign> $campaigns)
Parameters
| array<mixed,\FACTFinder\Data\Campaign> | $campaigns |
A collection of all Campaign objects. Provides some convenience methods to query all campaigns at once.
__construct(array<mixed,\FACTFinder\Data\Campaign> $campaigns)
| array<mixed,\FACTFinder\Data\Campaign> | $campaigns |
getPushedProducts() : array<mixed,\FACTFinder\Data\Record>
Returns an array with the pushed products from all campaigns. Note that if a product shows up in multiple campaigns, it will be duplicated in the result of this function.
getActiveQuestions() : array<mixed,\FACTFinder\Data\Record>
Returns an array with the active questions from all campaigns.
getAdvisorTree() : array<mixed,\FACTFinder\Data\Record>
Returns an array with the root questions of the advisor trees from all campaigns.