コード例 #1
0
ファイル: eventum.php プロジェクト: korusdipl/eventum
     $check = (int) $argv[3];
     if ($check == 0) {
         Command_Line::quit("Third argument to command 'add-time' should be a number");
     }
     Command_Line::addTimeEntry($client, $auth, $issue_id, $check);
     break;
 case 'list-files':
 case 'lf':
     Command_Line::printFileList($client, $auth, $issue_id);
     break;
 case 'get-file':
 case 'gf':
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for the file number');
     }
     Command_Line::getFile($client, $auth, $issue_id, $argv[3]);
     break;
 case 'close':
     Command_Line::closeIssue($client, $auth, $issue_id);
     break;
     // email related commands
 // email related commands
 case 'list-emails':
 case 'le':
     // lists all emails for the given issue
     Command_Line::listEmails($client, $auth, $issue_id);
     break;
 case 'get-email':
 case 'ge':
     // views an email
     if (count($argv) == 3) {