/** * Get time invested. * Custom added to class unfuddle * @param $date array containing group_by, start_date and end_date * For example: * $date = array( * 'group_by' => 'person', * 'start_date' => '2009/10/12', * 'end_date' => '2009/10/18', * ) */ public function getTime($personID, $date) { try { $time = $this->request($this->url . '/api/v1/account/time_invested.xml', $date); return $time; } catch (Exception $e) { $message = $e->getMessage(); echo '\nError: Unable to retrieve time tracking from Unfuddle'; echo '\nError message: '.$message; return FALSE; } }