Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
8bf82c91
Commit
8bf82c91
authored
Jan 28, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Скрыт не используемый метод
parent
af45d4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
common/modules/testings/controllers/PassingAdminController.php
...n/modules/testings/controllers/PassingAdminController.php
+17
-17
No files found.
common/modules/testings/controllers/PassingAdminController.php
View file @
8bf82c91
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment