Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-course-format
Commits
3fef2a61
Commit
3fef2a61
authored
May 24, 2019
by
Thomas Fradet
Browse files
cron logs
parent
33654b20
Changes
5
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
3fef2a61
...
...
@@ -233,6 +233,13 @@ Ajout d'un else à la condition pour que $date soit toujours instancié.
[x] Solved.
### Page principale du cours sans achèvement activé dans le cours
Si l'achèvement d'activité n'est pas activé dans le cours.
### Page de suivi des étudiants
#### 13
...
...
entity/course_format_iena_cron_action.php
View file @
3fef2a61
...
...
@@ -228,9 +228,12 @@
$message
->
courseid
=
$course
->
id
;
$message
->
notification
=
'0'
;
$message
->
fullmessageformat
=
FORMAT_HTML
;
$log
=
"Messages sent for section
$requete->name
of course
$course->fullname
(id
$course->id
) to "
;
$studs_counter
=
0
;
foreach
(
$students
as
$student
)
{
echo
get_string
(
'snd_msg_to'
,
'format_iena'
)
.
$student
->
firstname
.
' '
.
$student
->
lastname
;
$studs_counter
++
;
$message
->
userto
=
$student
;
$studs
[]
=
$message
->
smallmessage
=
$messageContent
;
$message
->
fullmessage
=
$messageContent
;
$message
->
fullmessagehtml
=
$messageContent
;
...
...
@@ -238,6 +241,8 @@
// $message->subject = $messageContent;
message_send
(
$message
);
}
$log
.
=
$studs_counter
.
" students."
;
echo
$log
;
}
...
...
lang/en/format_iena.php
View file @
3fef2a61
...
...
@@ -80,4 +80,4 @@ By definition an unnamed section is displayed as <strong>section [N]</strong>.';
$string
[
'section'
]
=
'Section'
;
$string
[
'hide_section'
]
=
'HIDE section '
;
$string
[
'show_section'
]
=
'SHOW section '
;
$string
[
'sdn_msg_to'
]
=
'Send a message to'
;
lang/fr/format_iena.php
View file @
3fef2a61
...
...
@@ -80,4 +80,4 @@ By definition an unnamed section is displayed as <strong>section [N]</strong>.';
$string
[
'section'
]
=
'Section'
;
$string
[
'hide_section'
]
=
'CACHER la section '
;
$string
[
'show_section'
]
=
'MONTRER la section '
;
$string
[
'sdn_msg_to'
]
=
'Envoyer un message à '
;
view/view_param_section.php
View file @
3fef2a61
...
...
@@ -51,7 +51,7 @@
public
function
get_content
(
$course
,
$dataSection
)
{
global
$DB
,
$CFG
,
$PAGE
;
var_dump
(
$dataSection
);
$mform
=
$this
->
_form
;
$sectionId
=
required_param
(
'sectionid'
,
PARAM_INT
);
$courseID
=
required_param
(
'courseid'
,
PARAM_INT
);
...
...
@@ -140,7 +140,7 @@
<div class=
\"
radio
\"
>
<label for=
\"
radios-1
\"
>
<input type=
\"
radio
\"
name=
\"
presence
\"
id=
\"
presence-2
\"
value=
\"
0
\"
"
;
if
(
$dataSection
==
false
)
{
if
(
$dataSection
==
false
||
(
$dataSection
!=
false
&&
$dataSection
->
presence
==
0
)
)
{
$content
.
=
"checked=
\"
checked
\"
"
;
}
$content
.
=
">
...
...
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