This class represents the interface to reports.
More...
|
| | addReport ($reportData, $fakeInfo=false) |
| | Adds a report and records to the database. More...
|
| |
| | buildSampleData ($recordsEach=500) |
| | Adds a lot of random, sample data to the database for testing. More...
|
| |
| | getOverviewData ($appName= '', $periodInDays=60) |
| | Returns a data structure needed to display an overview report. More...
|
| |
| | getReportDataForApp ($appName, $periodInDays=60) |
| | Returns a data structure needed to display an application report. More...
|
| |
This class represents the interface to reports.
| getReportDataForApp |
( |
|
$appName, |
|
|
|
$periodInDays = 60 |
|
) |
| |
Returns a data structure needed to display an application report.
- Parameters
-
| string | $appName | Name of the app as from appName query. |
| integer | $periodInDays | Reporting period start date, in days. |
- Returns
- array
| getOverviewData |
( |
|
$appName = '', |
|
|
|
$periodInDays = 60 |
|
) |
| |
Returns a data structure needed to display an overview report.
- Parameters
-
| string | $appName | Name of the app as from appName query. |
| integer | $periodInDays | Reporting period start date, in days. |
- Returns
- array
| buildSampleData |
( |
|
$recordsEach = 500 | ) |
|
Adds a lot of random, sample data to the database for testing.
Each $appNames will add 500 records each consisting of random data.
- Parameters
-
| integer | $recordsEach | Quantity of random records to add for each app. |
| addReport |
( |
|
$reportData, |
|
|
|
$fakeInfo = false |
|
) |
| |
Adds a report and records to the database.
- Parameters
-
| array | $reportData | Array of key-value pairs to add. |
| boolean | $fakeInfo | Indicates we will use fake report information. This supports random data generation for testing. |
Initial value:
Default sorting order.
Initial value:= [
'JDSparkleRecord' => [
'className' => 'JDSparkle.JDSparkleRecord'
Default relations for this model.
The documentation for this class was generated from the following file: