Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Manual Class Reference
Inheritance diagram for Manual:
AlgorithmInterface

Public Member Functions

 __construct (DataProviderInterface $dataProvider, OptionsInterface $options)
 
 getItems (BucketInterface $bucket, array $dimensions, EntityStorage $entityStorage)
 

Detailed Description

Definition at line 13 of file Manual.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( DataProviderInterface  $dataProvider,
OptionsInterface  $options 
)
Parameters
DataProviderInterface$dataProvider
OptionsInterface$options

Definition at line 29 of file Manual.php.

30  {
31  $this->dataProvider = $dataProvider;
32  $this->options = $options;
33  }

Member Function Documentation

◆ getItems()

getItems ( BucketInterface  $bucket,
array  $dimensions,
EntityStorage  $entityStorage 
)

{

Parameters
BucketInterface$bucket
array$dimensions
EntityStorage$entityStorage
Returns
array
}

Implements AlgorithmInterface.

Definition at line 38 of file Manual.php.

42  {
43  $range = $this->dataProvider->getRange();
44  $options = $this->options->get();
45  if (!$range) {
46  $range = $options['range_step'];
47  }
48  $dbRanges = $this->dataProvider->getAggregation($bucket, $dimensions, $range, $entityStorage);
49  $dbRanges = $this->processRange($dbRanges, $options['max_intervals_number']);
50  $data = $this->dataProvider->prepareData($range, $dbRanges);
51 
52  return $data;
53  }

The documentation for this class was generated from the following file: