-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
3,020 additions
and
2,216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
.git | ||
|
||
# Ignore Node.js modules | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
class nonsubmitters_message { | ||
|
||
/** | ||
* Send non-submitters message to students. | ||
* | ||
* @param string $message | ||
* @return void | ||
*/ | ||
public function send_message($userid, $subject, $message) { | ||
$eventdata = new stdClass(); | ||
$eventdata->component = 'mod_turnitintooltwo'; //your component name | ||
$eventdata->name = 'nonsubmitters'; //this is the message name from messages.php | ||
$eventdata->userfrom = get_admin(); | ||
$eventdata->userto = $userid; | ||
$eventdata->subject = $subject; | ||
$eventdata->fullmessage = $message; | ||
$eventdata->fullmessageformat = FORMAT_HTML; | ||
$eventdata->fullmessagehtml = $message; | ||
$eventdata->smallmessage = ''; | ||
$eventdata->notification = 1; //this is only set to 0 for personal messages between users | ||
|
||
message_send($eventdata); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.