case "update": if(isset($_REQUEST['votedArrayStr'])&&isset($_REQUEST['type'])){ $votedArray = json_decode(stripslashes($_POST['votedArrayStr'])); $voteId = $nowVote->update($votedArray, $_REQUEST['type']); echo($voteId); }else{ echo("voteProcess: votedArray/type is not set!"); } break; */ case "updateChatVoteResult": if (isset($_REQUEST['consentProportion']) && isset($_REQUEST['workerTimeoutInSec']) && isset($_REQUEST['chatTimeoutInSec'])) { $consentProportion = doubleval($_REQUEST['consentProportion']); $workerTimeoutInSec = intval($_REQUEST['workerTimeoutInSec']); $chatTimeoutInSec = intval($_REQUEST['chatTimeoutInSec']); echo json_encode($nowVote->updateChatVoteResult($consentProportion, $workerTimeoutInSec, $chatTimeoutInSec)); } else { echo "voteProcess: consentProportion/workerTimeoutInSec/chatTimeoutInSec is not set!"; } break; /* case "updateParameterVoteResult": echo($nowVote->updateParameterVoteResult()); break; */ /* case "updateCandidate": $newChatLine = $nowPara->updateCandidate($_REQUEST['nowLineNum']); echo($newChatLine); break; */