@@ -255,7 +255,7 @@ public function format_text($text) {
255
255
* @param $classes string class for the formatting of the notification
256
256
*/
257
257
public function add_notification ($ note , $ classes = 'notifyproblem ' ) {
258
- array_push ($ this ->notifications , $ this ->notification ($ note , $ classes ));
258
+ array_push ($ this ->notifications , $ this ->notification ($ note , $ classes, false ));
259
259
}
260
260
261
261
/**
@@ -766,48 +766,6 @@ private function get_option_title($rating, strategytemplate $strategy) {
766
766
get_string ('rating_raw ' , RATINGALLOCATE_MOD_NAME , $ option );
767
767
}
768
768
769
- /**
770
- * Format the users in the rating table
771
- */
772
- public function format_user_data ($ data ) {
773
- global $ CFG , $ USER , $ COURSE ;
774
-
775
- $ output = '' ;
776
- $ output .= html_writer::start_tag ('div ' , array ('class ' => 'ratingallocate_user ' ));
777
- $ output .= html_writer::start_tag ('div ' , array ('class ' => 'name ' ));
778
- $ output .= fullname ($ data );
779
- $ output .= html_writer::end_tag ('div ' );
780
- $ output .= html_writer::start_tag ('div ' , array ('class ' => 'icons ' ));
781
- if (has_capability ('moodle/user:viewdetails ' , $ this ->page ->context )) {
782
- $ a = array ();
783
- $ a ['href ' ] = new moodle_url ('/user/view.php ' , array ('id ' => $ data ->id , 'course ' => $ COURSE ->id ));
784
- $ a ['title ' ] = get_string ('viewprofile ' , 'core ' );
785
- $ output .= html_writer::start_tag ('a ' , $ a );
786
-
787
- $ src = array ('src ' => $ this ->output ->pix_url ('i/user ' ), 'class ' => 'icon ' , 'alt ' => get_string ('viewprofile ' , 'core ' ));
788
- $ output .= html_writer::empty_tag ('img ' , $ src );
789
-
790
- $ output .= html_writer::end_tag ('a ' );
791
- }
792
-
793
- if ($ CFG ->messaging && has_capability ('moodle/site:sendmessage ' , $ this ->page ->context ) && $ data ->id != $ USER ->id ) {
794
- $ a = array ();
795
- $ a ['href ' ] = new moodle_url ('/message/index.php ' , array ('id ' => $ data ->id ));
796
- $ a ['title ' ] = get_string ('sendmessageto ' , 'core_message ' , fullname ($ data ));
797
- $ output .= html_writer::start_tag ('a ' , $ a );
798
-
799
- $ src = array ('src ' => $ this ->output ->pix_url ('t/email ' ), 'class ' => 'icon ' );
800
- $ src ['alt ' ] = get_string ('sendmessageto ' , 'core_message ' , fullname ($ data ));
801
- $ output .= html_writer::empty_tag ('img ' , $ src );
802
-
803
- $ output .= html_writer::end_tag ('a ' );
804
- }
805
- $ output .= html_writer::end_tag ('div ' );
806
- $ output .= html_writer::end_tag ('div ' );
807
-
808
- return $ output ;
809
- }
810
-
811
769
/**
812
770
* Utility function to add a row of data to a table with 2 columns. Modified
813
771
* the table param and does not return a value
0 commit comments