Скрыт не используемый метод

parent af45d4a5
...@@ -140,29 +140,29 @@ class PassingAdminController extends AdminController ...@@ -140,29 +140,29 @@ class PassingAdminController extends AdminController
return sprintf("%02d:%02d:%02d", (int)($time / 3600), (int)(($time % 3600) / 60), $time % 60); return sprintf("%02d:%02d:%02d", (int)($time / 3600), (int)(($time % 3600) / 60), $time % 60);
} }
public function actionReAttempt($id) // public function actionReAttempt($id)
{ // {
$passing = $this->loadModel($id); // $passing = $this->loadModel($id);
$passing->attempt = 0; // $passing->attempt = 0;
$passing->save(false, array('attempt')); // $passing->save(false, array('attempt'));
$subject = 'Тестирование - переназначение теста'; // $subject = 'Тестирование - переназначение теста';
$body = Setting::getValue('email_reattempt_body'); // $body = Setting::getValue('email_reattempt_body');
$mailer_letter = MailerLetter::model(); // $mailer_letter = MailerLetter::model();
$body = $mailer_letter->compileText($body, array( // $body = $mailer_letter->compileText($body, array(
'test_name' => $passing->test->name, // 'test_name' => $passing->test->name,
)); // ));
unset($mailer_letter); // unset($mailer_letter);
$result = MailerModule::sendMailUniSender($passing->user->email, $subject, $body); // $result = MailerModule::sendMailUniSender($passing->user->email, $subject, $body);
$this->render('reattempt', array( // $this->render('reattempt', array(
'result' => $result // 'result' => $result
)); // ));
} // }
public function actionChangeAnswerStatus($qp_id) public function actionChangeAnswerStatus($qp_id)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment