1414// You should have received a copy of the GNU General Public License
1515// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616
17- namespace mod_collaborativefolders \output ;
18-
1917/**
2018 * Renderer for the Web interface of collaborativefolders module.
2119 *
2422 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2523 */
2624
25+ namespace mod_collaborativefolders \output ;
26+
2727use core \output \notification ;
2828use core \output \plugin_renderer_base ;
2929use mod_collaborativefolders \name_form ;
@@ -62,6 +62,9 @@ public function render_widget_login(\moodle_url $loginurl) {
6262 return html_writer::link ($ loginurl , get_string ('btnlogin ' , 'mod_collaborativefolders ' ), ['class ' => 'btn btn-primary ' ]);
6363 }
6464
65+ /**
66+ * Render teachersnotallowed notification.
67+ */
6568 public function render_widget_teachermaynotaccess () {
6669 $ notification = new notification (
6770 get_string ('teachersnotallowed ' , 'mod_collaborativefolders ' ),
@@ -71,6 +74,9 @@ public function render_widget_teachermaynotaccess() {
7174 return $ this ->render ($ notification );
7275 }
7376
77+ /**
78+ * Render notingroup notification.
79+ */
7480 public function render_widget_nogroups (): string {
7581 $ notification = new notification (
7682 get_string ('notingroup ' , 'mod_collaborativefolders ' ),
@@ -80,6 +86,9 @@ public function render_widget_nogroups(): string {
8086 return $ this ->render ($ notification );
8187 }
8288
89+ /**
90+ * Render problem_nosystemconnection notification.
91+ */
8392 public function render_widget_nosystemconnection () {
8493 $ servicename = get_config ('collaborativefolders ' , 'servicename ' );
8594 $ notification = new notification (
@@ -90,6 +99,9 @@ public function render_widget_nosystemconnection() {
9099 return $ this ->render ($ notification );
91100 }
92101
102+ /**
103+ * Render problem_misconfiguration notification.
104+ */
93105 public function render_widget_misconfiguration () {
94106 $ notification = new notification (
95107 get_string ('problem_misconfiguration ' , 'mod_collaborativefolders ' ),
@@ -99,6 +111,9 @@ public function render_widget_misconfiguration() {
99111 return $ this ->render ($ notification );
100112 }
101113
114+ /**
115+ * Render problem_sharessuppressed notification.
116+ */
102117 public function render_widget_noconnection_suppressed_share (int $ sharessuppressed ) {
103118 $ info = (object )[
104119 'sharessuppressed ' => $ sharessuppressed ,
@@ -114,6 +129,7 @@ public function render_widget_noconnection_suppressed_share(int $sharessuppresse
114129 }
115130
116131 /**
132+ * Render the name form.
117133 * @param name_form $form
118134 */
119135 public function output_name_form ($ group , name_form $ form ) {
0 commit comments