mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-16267 done all items in list (html tidy, xhtml strict, plugins tidy)
This commit is contained in:
parent
2c48aeab95
commit
d18b1bbdec
10 changed files with 140 additions and 195 deletions
|
@ -82,11 +82,11 @@ class message_output_email extends message_output {
|
|||
* Creates necessary fields in the messaging config form.
|
||||
* @param object $mform preferences form class
|
||||
*/
|
||||
function config_form(&$mform){
|
||||
$mform->addElement('static', 'email_labelemail', get_string('processortag', 'message').'Email ', '');
|
||||
$mform->addElement('text', 'email_email', get_string('email'));
|
||||
$mform->setAdvanced('email_labelemail');
|
||||
$mform->setAdvanced('email_email');
|
||||
function config_form($preferences){
|
||||
$dest = get_string('email', 'messageprocessor_email');
|
||||
echo '<tr><td colspan="2"><b>'.get_string('processortag', 'message').$dest.'</b></td></tr>'."\n";
|
||||
echo '<tr><td align="right">'.get_string('email').'</td><td><input name="email_email" value="'.$preferences->email_email.'" /></td></tr>'."\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -94,7 +94,7 @@ class message_output_email extends message_output {
|
|||
* @param object $mform preferences form class
|
||||
* @param array $preferences preferences array
|
||||
*/
|
||||
function process_form(&$form, &$preferences){
|
||||
function process_form($form, &$preferences){
|
||||
$preferences['message_processor_email_email'] = $form->email_email;
|
||||
}
|
||||
|
||||
|
|
|
@ -110,11 +110,11 @@ class message_output_jabber extends message_output {
|
|||
* Creates necessary fields in the messaging config form.
|
||||
* @param object $mform preferences form class
|
||||
*/
|
||||
function config_form(&$mform){
|
||||
$mform->addElement('static', 'jabber_labeljabber', get_string('processortag', 'message').'Jabber ', '');
|
||||
$mform->addElement('text', 'jabber_jabberid', 'jabber ID');
|
||||
$mform->setAdvanced('jabber_labeljabber');
|
||||
$mform->setAdvanced('jabber_jabberid');
|
||||
function config_form($preferences){
|
||||
$dest = get_string('jabber', 'messageprocessor_jabber');
|
||||
echo '<tr><td colspan="2"><b>'.get_string('processortag', 'message').$dest.'</b></td></tr>'."\n";
|
||||
echo '<tr><td align="right">Jabber ID</td><td><input name="jabber_jabberid" value="'.$preferences->jabber_jabberid.'" /></td></tr>'."\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -122,7 +122,7 @@ class message_output_jabber extends message_output {
|
|||
* @param object $mform preferences form class
|
||||
* @param array $preferences preferences array
|
||||
*/
|
||||
function process_form(&$form, &$preferences){
|
||||
function process_form($form, &$preferences){
|
||||
$preferences['message_processor_jabber_jabberid'] = $form->jabber_jabberid;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
abstract class message_output {
|
||||
public abstract function send_message($message);
|
||||
public abstract function process_form(&$form, &$preferences);
|
||||
public abstract function process_form($form, &$preferences);
|
||||
public abstract function load_data(&$preferences, $userid);
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,11 @@ class message_output_popup extends message_output{
|
|||
return true;
|
||||
}
|
||||
|
||||
public function process_form(&$form, &$preferences){
|
||||
function config_form($preferences){
|
||||
return true;
|
||||
}
|
||||
|
||||
public function process_form($form, &$preferences){
|
||||
return true;
|
||||
}
|
||||
public function load_data(&$preferences, $userid){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue