private function sendBack($post_result) { if ($this->checkStop()) { throw new Exception('stop'); } $return_url = $this->return_url; $public_key = $this->public_key; writelog('Sending back to ' . $return_url); writelog($post_result); $client = new BFL_RemoteAccess_Client($return_url, $public_key, 0); $client->writeRecord($post_result); }
public static function stopJudge($task_name, $judger) { $client = new BFL_RemoteAccess_Client($judger->getConfig()->getRemoteURL(), $judger->getConfig()->getRemoteKey(), 1); $client->stopJudge($task_name); }
public static function updateTestdata($judger_url, $public_key, $prob_name) { $client = new BFL_RemoteAccess_Client($judger_url, $public_key); return $client->updateTestdata($prob_name); }