[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.report.php (summary)

(no description)

File Size: 940 lines (39 kb)
Included or required: 13 times
Referenced: 0 times
Includes or requires: 8 files
 include/class.phone_support.php
 include/class.status.php
 include/class.history.php
 include/class.user.php
 include/class.misc.php
 include/class.date.php
 include/class.error_handler.php
 include/class.prefs.php

Defines 1 class

Report:: (8 methods):
  getStalledIssuesByUser()
  getOpenIssuesByUser()
  getIssuesByUser()
  getWeeklyReport()
  getWorkloadByTimePeriod()
  getEmailWorkloadByTimePeriod()
  getCustomFieldReport()
  getWorkloadByDateRange()


Class: Report  - X-Ref

Class to handle the business logic related to all aspects of the
reporting system.

getStalledIssuesByUser($prj_id, $users, $status, $before_date, $after_date, $sort_order)   X-Ref
Method used to get all open issues and group them by user.

param: integer $prj_id The project ID
return: array The list of issues

getOpenIssuesByUser($prj_id, $cutoff_days, $group_by_reporter = false)   X-Ref
Method used to get all open issues and group them by assignee or reporter.

param: integer $prj_id The project ID
param: integer $cutoff_days The number of days to use as a cutoff period
return: array The list of issues

getIssuesByUser($prj_id)   X-Ref
Method used to get the list of issues in a project, and group
them by the assignee.

param: integer $prj_id The project ID
return: array The list of issues

getWeeklyReport($usr_id, $start, $end, $separate_closed = false, $ignore_statuses = false)   X-Ref
Returns the data used by the weekly report.

param: string $usr_id The ID of the user this report is for.
param: string The start date of this report.
param: string The end date of this report.
param: boolean If closed issues should be separated from other issues.
param: boolean If issue status changes should be ignored in report.
return: array An array of data containing all the elements of the weekly report.

getWorkloadByTimePeriod($timezone, $graph = false)   X-Ref
Returns data used by the workload by time period report.

param: string $timezone Timezone to display time in in addition to GMT
param: boolean $graph If the data should be formatted for use in a graph. Default false
return: array An array of data.

getEmailWorkloadByTimePeriod($timezone, $graph = false)   X-Ref
Returns data on when support emails are sent/recieved.

param: string $timezone Timezone to display time in in addition to GMT
param: boolean $graph If the data should be formatted for use in a graph. Default false
return: array An array of data.

getCustomFieldReport($fld_id, $cfo_ids, $group_by = "issue", $start_date, $end_date, $list = false, $interval = '', $assignee = false)   X-Ref
Returns data for the custom fields report, based on the field and options passed in.

param: integer $fld_id The id of the custom field.
param: array $cfo_ids An array of option ids.
param: string $group_by How the data should be grouped.
param: string $start_date
param: string $end_date
param: boolean $list If the values should be listed out instead of just counted.
param: string $interval The interval values should be grouped over time, empty (none) by default.
param: integer $assignee The assignee the issue should belong to.
return: array An array of data.

getWorkloadByDateRange($interval, $type, $start, $end, $category)   X-Ref
Returns workload information for the specified date range and interval.

param: string $interval The interval to use in this report.
param: string $type If this report is aggregate or individual
param: string $start The start date of this report.
param: string $end The end date of this report.
param: integer $category The category to restrict this report to
return: array An array containing workload data.



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7