lib/SummaryUIProcessor.php
/**
     * Adds bucket-by properties to `$this->summaryConfig`. The summary must
     * be itemized otherwise throws an exception.
     * @return void
     */
Adds bucket-by properties to `$this->summaryConfig`. The summary must
be itemized otherwise throws an exception.
@return void
Adds bucket - by properties to ` $this - > summaryConfig ` . The summary must be itemized otherwise throws an exception . @return void
private function addItemizedConfig() {
        assert($this->isItemized(), 'The count must be itemized');
        $bucketBy = $this->summaryConfig['bucketBy'];
        if ($this->dataDictionary->fieldExists($bucketBy)) {
            $bucketByLabel = $this->dataDictionary->getFieldLabel($bucketBy);
            $this->summaryConfig['bucketByFieldExists'] = true;
            $this->summaryConfig['bucketByLabel'] = $bucketByLabel;
            $this->summaryConfig['data'] = $this->mapBucketData();
        } else {
            $this->summaryConfig['bucketByFieldExists'] = false;
        }
    }
private function addItemizedConfig ( ) { assert ( $ this -> isItemized ( ) , 'The count must be itemized' ) ; $ bucketBy = $ this -> summaryConfig [ 'bucketBy' ] ; if ( $ this -> dataDictionary -> fieldExists ( $ bucketBy ) ) { $ bucketByLabel = $ this -> dataDictionary -> getFieldLabel ( $ bucketBy ) ; $ this -> summaryConfig [ 'bucketByFieldExists' ] = true ; $ this -> summaryConfig [ 'bucketByLabel' ] = $ bucketByLabel ; $ this -> summaryConfig [ 'data' ] = $ this -> mapBucketData ( ) ; } else { $ this -> summaryConfig [ 'bucketByFieldExists' ] = false ; } }
Adds bucket-by properties to `$this->summaryConfig`.
Adds bucket - by properties to ` $this - > summaryConfig ` .