Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
dataprocessor
Commits
67f9cbc8
Commit
67f9cbc8
authored
Feb 12, 2020
by
jaapjansma
Browse files
updated aggregate handler
parent
58319b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Civi/DataProcessor/FieldOutputHandler/NumberFieldOutputHandler.php
View file @
67f9cbc8
...
...
@@ -81,6 +81,31 @@ class NumberFieldOutputHandler extends AbstractSimpleFieldOutputHandler implemen
}
}
/**
* Enable aggregation for this field.
*
* @return void
*/
public
function
enableAggregation
()
{
$dataFlow
=
$this
->
dataSource
->
ensureField
(
$this
->
getAggregateFieldSpec
());
if
(
$dataFlow
)
{
$dataFlow
->
addAggregateOutputHandler
(
$this
);
}
}
/**
* Disable aggregation for this field.
*
* @return void
*/
public
function
disableAggregation
()
{
$dataFlow
=
$this
->
dataSource
->
ensureField
(
$this
->
getAggregateFieldSpec
());
if
(
$dataFlow
)
{
$dataFlow
->
removeAggregateOutputHandler
(
$this
);
}
}
/**
* When this handler has additional configuration you can add
* the fields on the form with this function.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment