function support_pm_aggregate_client in Support Ticketing System 7
Same name and namespace in other branches
- 6 support_pm/support_pm.admin.inc \support_pm_aggregate_client()
1 call to support_pm_aggregate_client()
- support_pm_admin_reports in support_pm/
support_pm.admin.inc
File
- support_pm/
support_pm.admin.inc, line 334
Code
function support_pm_aggregate_client($day) {
// TODO: Count the # of people involved, give 12 hours per person to breakdown scale
$aggregate = array();
foreach ($day as $uid => $client) {
foreach ($client as $clid => $data) {
if (isset($aggregate[$clid])) {
$aggregate[$clid]->hours += $data->hours;
}
else {
$aggregate[$clid] = clone $data;
}
}
}
return $aggregate;
}