How To Query KPI Numbers

Use the Alberon\AgendaUtilities\Laravel\Support\Kpi class and call the query method, passing in an instance of Alberon\AgendaUtilities\Laravel\Support\KpiConfiguration. The return value will either be an array of questions or an array of topics (depending on the query type), if the query type is Topics and Questions then it will be an array of topics, each topic having an array of questions.

There are class constants to help with some of the configuration fields:

Field(s) Enum Class
type Alberon\AgendaUtilities\Enums\KpiType
columns.*.type Alberon\AgendaUtilities\Enums\KpiColumnType
topicSortOrder Alberon\AgendaUtilities\Enums\KpiSortOrder
questionSortOrder Alberon\AgendaUtilities\Enums\KpiSortOrder