4 * SOAP Tracker Include - this file contains wrapper functions for the SOAP interface
6 * Copyright 2005 Tony Bibbs <tony@geeklog.net>
10 * This file is part of GForge.
12 * GForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * GForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with GForge; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
28 require_once $gfcommon.'include/Error.class.php';
29 require_once $gfcommon.'reporting/TimeEntry.class.php';
35 'session_ser'=>'xsd:string',
36 'projectTaskId'=>'xsd:int',
38 'daysAdjust'=>'xsd:int',
39 'timeCode'=>'xsd:int',
42 array('addTimeEntryResponse'=>'xsd:int'),
43 $uri,$uri.'#addTimeEntry','rpc','encoded'
50 function &addTimeEntry($session_ser, $projectTaskId, $week, $daysAdjust, $timeCode, $hours)
52 continue_session($session_ser);
54 $teObj = new TimeEntry();
55 error_log("addTimeEntry ($projectTaskId, $week, $daysAdjust, $timeCode, $hours)");
56 return $teObj->create($projectTaskId, $week, $daysAdjust, $timeCode, $hours);