[ Index ] |
PHP Cross Reference of Eventum |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 755 lines (27 kb) |
Included or required: | 3 times |
Referenced: | 0 times |
Includes or requires: | 2 files include/class.error_handler.php include/class.time_tracking.php |
Customer_Stats_Report:: (18 methods):
Customer_Stats_Report()
getData()
getDataRow()
getAllRow()
getCustomerCounts()
getIssueCounts()
getIssueCountsByCustomer()
getEmailCounts()
getTimeTracking()
getIndividualTimeTracking()
getTimeStats()
isCustomerBased()
excludeExpired()
getWhereClause()
getRowLabel()
getGraphTypes()
getDisplaySections()
getTimeTrackingCategories()
Class: Customer_Stats_Report - X-Ref
The Customer Stats report will be too complex to group with the rest ofCustomer_Stats_Report($prj_id, $levels, $customers, $start_date, $end_date) X-Ref |
Class Constructor. Accepts the support level, customer, start date and end date to be used in this report. If a customer is specified the support level is ignored. If the date is left off or invalid all dates are included. param: integer $prj_id The id of the project this report is for. param: array $levels The support levels that should be shown in this report. param: array $customers The customers this report should be for. param: string $start_date The start date of this report. param: string $end_date The end date of this report. |
getData() X-Ref |
Returns all data for this report. return: array |
getDataRow($name, $customers) X-Ref |
Returns data row for specified name and customers. param: string $name Name of data row. param: string $customers Customers to include in this row. return: array An array of data. |
getAllRow() X-Ref |
Returns the "all" row, that is the row that always appears at the top of the report and covers all support levels and customers regardless of what is selected. return: array The array of data for this row. |
getCustomerCounts($name) X-Ref |
Returns various customer statistics. param: string $name The name of this data row. return: array Array of statistics |
getIssueCounts($name) X-Ref |
Returns the counts relating to number of issues. - total: total number of issues for the support level. - avg: Average number of issues opened by customers for support level. - median: Median number of issues opened by customers for support level. param: string $name The name of this data row. return: array Array of counts. |
getIssueCountsByCustomer($name) X-Ref |
Returns an array of issue counts for customers. param: string $name The name of this data row. |
getEmailCounts() X-Ref |
Returns the counts relating to # of customer and developer emails. return: array Array of counts. |
getTimeTracking() X-Ref |
Returns information from time tracking module, split by category return: array Array of counts. |
getIndividualTimeTracking($ttc_id = false) X-Ref |
Returns time tracking information for a certain category, or all categories if no category is passed. param: $ttc_id The id of the time tracking category. Default false return: array Array of time tracking information |
getTimeStats() X-Ref |
Returns information about time to close and time to first response. return: array Array of counts. |
isCustomerBased() X-Ref |
Returns if this report is customer based return: boolean |
excludeExpired($exclude) X-Ref |
Sets if expired contracts should be exclude param: boolean $split If expired contracts should be excluded |
getWhereClause($customer_field, $date_field) X-Ref |
Returns where clause based on what the current support level/customer is set to, and date range currently set. If $date_field is an array, the fields will be ORed together. param: string $customer_field The name of customer_id field param: mixed $date_field The name of the date field return: string A string with the SQL limiting the resultset |
getRowLabel() X-Ref |
Returns the text for the row label. Will be "Support Level" if viewing support levels and "Customer" if viewing a specific customer. return: string The text for the row label. |
getGraphTypes() X-Ref |
Returns an array of graph types return: array An array of graph types |
getDisplaySections() X-Ref |
Returns the list of sections that can be displayed. return: array An array of sections. |
getTimeTrackingCategories() X-Ref |
Returns the list of time tracking categories that have data. return: array An array of time tracking categories |
Generated: Wed Dec 19 21:21:33 2007 | Cross-referenced by PHPXref 0.7 |