Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 34... Línea 34...
34
 * Class for the displaying the participants table.
34
 * Class for the displaying the participants table.
35
 *
35
 *
36
 * @package    core_webservice
36
 * @package    core_webservice
37
 * @copyright  2017 John Okely <john@moodle.com>
37
 * @copyright  2017 John Okely <john@moodle.com>
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
39
 *
-
 
40
 * @deprecated since 4.5 MDL-79496. Table replaced with a report builder system report.
-
 
41
 * @todo MDL-79909 This will be deleted in Moodle 6.0.
39
 */
42
 */
-
 
43
#[\core\attribute\deprecated(
-
 
44
    replacement: null,
-
 
45
    since: '4.5',
-
 
46
    reason: 'Table replaced with a report builder system report',
-
 
47
    mdl: 'MDL-79496',
-
 
48
)]
40
class token_table extends \table_sql {
49
class token_table extends \table_sql {
Línea 41... Línea 50...
41
 
50
 
42
    /**
51
    /**
43
     * @var bool $showalltokens Whether or not the user is able to see all tokens.
52
     * @var bool $showalltokens Whether or not the user is able to see all tokens.
Línea 194... Línea 203...
194
 
203
 
195
        return $content;
204
        return $content;
Línea 196... Línea 205...
196
    }
205
    }
197
 
-
 
198
    /**
-
 
199
     * Generate the token column.
-
 
200
     *
-
 
201
     * @param \stdClass $data Data for the current row
-
 
202
     * @return string Content for the column
-
 
203
     *
-
 
204
     * @deprecated since Moodle 4.3 MDL-76656. Please do not use this function anymore.
-
 
205
     * @todo MDL-78605 Final deprecation in Moodle 4.7.
-
 
206
     */
-
 
207
    public function col_token($data) {
-
 
208
        debugging('The function ' . __FUNCTION__ . '() is deprecated - please do not use it any more. ', DEBUG_DEVELOPER);
-
 
209
 
-
 
210
        global $USER;
-
 
211
        // Hide the token if it wasn't created by the current user.
-
 
212
        if ($data->creatorid != $USER->id) {
-
 
213
            return \html_writer::tag('small', get_string('onlyseecreatedtokens', 'core_webservice'), ['class' => 'text-muted']);
-
 
214
        }
-
 
215
 
-
 
216
        return $data->token;
-
 
217
    }
-
 
218
 
206
 
219
    /**
207
    /**
220
     * Generate the name column.
208
     * Generate the name column.
221
     *
209
     *
222
     * @param \stdClass $data Data for the current row
210
     * @param \stdClass $data Data for the current row