+++ /tmp/eventum 2005-07-19 17:43:37.000000000 +0300
@@ -218,15 +218,19 @@
}
- Command_Line::lookupCustomer(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
+ Command_Line::lookupCustomer($client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
} elseif (($HTTP_SERVER_VARS['argv'][1] == 'weekly-report') || ($HTTP_SERVER_VARS['argv'][1] == 'wr')) {
- if (count(@$HTTP_SERVER_VARS['argv']) == 4) {
+ if (count(@$HTTP_SERVER_VARS['argv']) >= 4 and $HTTP_SERVER_VARS['argv'][3] != '--separate-closed') {
+ $separate_closed = (@$HTTP_SERVER_VARS['argv'][4] == '--separate-closed');
// date range
-- Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
-+ Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
+- Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
++ Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
} else {
// weekly
if (@$HTTP_SERVER_VARS['argv'][2] == '') {
+ } else {
+ $separate_closed = (@$HTTP_SERVER_VARS['argv'][3] == '--separate-closed' or @$HTTP_SERVER_VARS['argv'][2] == '--separate-closed');
}
-- Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2]);
-+ Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
+- Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2]);
++ Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
}
} elseif ($HTTP_SERVER_VARS['argv'][1] == 'clock') {
Command_Line::timeClock(&$client, $auth, @$HTTP_SERVER_VARS['argv'][2]);
* @param string $end_date The end_date of the report. (optional)
+ * @param boolean If closed issues should be separated from other issues.
*/
-- function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '')
-+ function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
+- function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '')
++ function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
{
$msg = new XML_RPC_Message("getWeeklyReport", array(
- new XML_RPC_Value($auth[0], 'string'),
+ new XML_RPC_Value($auth[0], 'string'),
new XML_RPC_Value($auth[1], 'string'),
- new XML_RPC_Value($week, "int"),
- new XML_RPC_Value($start_date, "string"),
+ new XML_RPC_Value($week, "int"),
+ new XML_RPC_Value($start_date, "string"),
- new XML_RPC_Value($end_date, "string")
+ new XML_RPC_Value($end_date, "string"),
+ new XML_RPC_Value($separate_closed ? 1 : 0, 'int'),