23
23
*/
24
24
namespace tool_lifecycle \local \table ;
25
25
26
- use core \output \html_writer ;
27
26
use moodle_url ;
28
27
use tool_lifecycle \local \manager \delayed_courses_manager ;
29
28
use tool_lifecycle \urls ;
@@ -176,7 +175,7 @@ public function col_workflow($row) {
176
175
if ($ row ->workflowcount == 1 ) {
177
176
$ typehtml = delayed_courses_manager::delaytype_html ($ row ->delaytype );
178
177
$ text = get_string ('delayed_globally_and_seperately_for_one ' , 'tool_lifecycle ' );
179
- $ html = html_writer::link ($ url , $ text ).$ typehtml ;
178
+ $ html = \ html_writer::link ($ url , $ text ).$ typehtml ;
180
179
} else if ($ row ->workflowcount > 1 ) {
181
180
$ text = $ this ->get_worklows_multiple ($ row , $ url );
182
181
$ html = $ text ;
@@ -185,7 +184,7 @@ public function col_workflow($row) {
185
184
$ date = userdate ($ row ->globaldelay , $ dateformat );
186
185
$ typehtml = delayed_courses_manager::delaytype_html ($ row ->delaytype );
187
186
$ text = get_string ('delayed_globally ' , 'tool_lifecycle ' , $ date );
188
- $ html = html_writer::link ($ url , $ text ).$ typehtml ;
187
+ $ html = \ html_writer::link ($ url , $ text ).$ typehtml ;
189
188
}
190
189
} else {
191
190
if ($ row ->workflowcount <= 0 ) {
@@ -196,7 +195,7 @@ public function col_workflow($row) {
196
195
$ typehtml = delayed_courses_manager::delaytype_html ($ row ->delaytype );
197
196
$ text = get_string ('delayed_for_workflow_until ' , 'tool_lifecycle ' ,
198
197
['name ' => $ row ->workflow , 'date ' => $ date ]);
199
- $ html = html_writer::link ($ url , $ text ).$ typehtml ;
198
+ $ html = \ html_writer::link ($ url , $ text ).$ typehtml ;
200
199
} else {
201
200
$ text = $ this ->get_worklows_multiple ($ row , $ url );
202
201
$ html = $ text ;
@@ -223,14 +222,14 @@ private function get_worklows_multiple($row, $url) {
223
222
$ date = userdate ($ row ->globaldelay , $ dateformat );
224
223
$ typehtml = delayed_courses_manager::delaytype_html ($ row ->delaytype );
225
224
$ text = get_string ('globally_until_date ' , 'tool_lifecycle ' , $ date );
226
- $ html .= html_writer::link ($ url , $ text ).$ typehtml ."<br> " ;
225
+ $ html .= \ html_writer::link ($ url , $ text ).$ typehtml ."<br> " ;
227
226
}
228
227
if ($ row ->workflowcount == 1 ) {
229
228
$ date = userdate ($ row ->workflowdelay , $ dateformat );
230
229
$ typehtml = delayed_courses_manager::delaytype_html ($ row ->delaytype );
231
230
$ text = get_string ('name_until_date ' , 'tool_lifecycle ' ,
232
231
['name ' => $ row ->workflow , 'date ' => $ date ]);
233
- $ html .= html_writer::link ($ url , $ text ).$ typehtml ;
232
+ $ html .= \ html_writer::link ($ url , $ text ).$ typehtml ;
234
233
} else if ($ row ->workflowcount > 1 ) {
235
234
$ sql = 'SELECT dw.id, dw.delayeduntil, w.title, w.id as workflowid
236
235
FROM {tool_lifecycle_delayed_workf} dw
@@ -244,7 +243,7 @@ private function get_worklows_multiple($row, $url) {
244
243
$ text = get_string ('name_until_date ' , 'tool_lifecycle ' ,
245
244
['name ' => $ record ->title , 'date ' => $ date ]);
246
245
$ url = new moodle_url ($ url , ['wf ' => $ record ->workflowid ]);
247
- $ html .= html_writer::link ($ url , $ text ).$ typehtml ."<br> " ;
246
+ $ html .= \ html_writer::link ($ url , $ text ).$ typehtml ."<br> " ;
248
247
}
249
248
}
250
249
return $ html ;
0 commit comments