コード例 #1
0
ファイル: eventum.php プロジェクト: korusdipl/eventum
         } else {
             $show_all_issues = true;
             $status = $argv[2];
         }
     } elseif (count($argv) == 4) {
         if (@$argv[3] == 'my') {
             $show_all_issues = false;
         } else {
             $show_all_issues = true;
         }
         $status = $argv[2];
     } else {
         $show_all_issues = true;
         $status = '';
     }
     Command_Line::printOpenIssues($client, $auth, $show_all_issues, $status);
 } elseif ($argv[1] == 'list-status') {
     Command_Line::printStatusList($client, $auth);
 } elseif ($argv[1] == 'customer') {
     if (count($argv) != 4) {
         Command_Line::quit('Wrong parameter count');
     }
     Command_Line::lookupCustomer($client, $auth, $argv[2], $argv[3]);
 } elseif ($argv[1] == 'weekly-report' || $argv[1] == 'wr') {
     if (count(@$argv) >= 4 and $argv[3] != '--separate-closed') {
         $separate_closed = @$argv[4] == '--separate-closed';
         // date range
         Command_Line::getWeeklyReport($client, $auth, 0, $argv[2], $argv[3], $separate_closed);
     } else {
         // weekly
         if (@$argv[2] == '') {