Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 52... Línea 52...
52
     * Extended constructor to fetch from the cache if available.
52
     * Extended constructor to fetch from the cache if available.
53
     *
53
     *
54
     * @param int $id If set, this is the id of an existing record, used to load the data.
54
     * @param int $id If set, this is the id of an existing record, used to load the data.
55
     * @param stdClass $record If set will be passed to {@link self::from_record()}.
55
     * @param stdClass $record If set will be passed to {@link self::from_record()}.
56
     */
56
     */
57
    public function __construct($id = 0, stdClass $record = null) {
57
    public function __construct($id = 0, ?stdClass $record = null) {
58
        global $CFG;
58
        global $CFG;
Línea 59... Línea 59...
59
 
59
 
60
        if ($id) {
60
        if ($id) {
61
            $cache = \cache::make('tool_dataprivacy', 'purpose');
61
            $cache = \cache::make('tool_dataprivacy', 'purpose');