Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 56... Línea 56...
56
        [$this->course, $this->cminfo] = get_course_and_cm_from_cmid($cmid);
56
        [$this->course, $this->cminfo] = get_course_and_cm_from_cmid($cmid);
57
        $this->packager = new activity_packager($this->cminfo, $this->userid);
57
        $this->packager = new activity_packager($this->cminfo, $this->userid);
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
-
 
61
     * Share an activity/resource to MoodleNet.
-
 
62
     *
-
 
63
     * @return array The HTTP response code from MoodleNet and the MoodleNet draft resource URL (URL empty string on fail).
-
 
64
     *                Format: ['responsecode' => 201, 'drafturl' => 'https://draft.mnurl/here']
60
    /**
65
     * @deprecated since Moodle 4.3
-
 
66
     * @todo Final deprecation MDL-79086
61
     * @deprecated since Moodle 4.3 MDL-75318
-
 
62
     */
67
     */
63
    #[\core\attribute\deprecated('share_resource()', since: '4.3', mdl: 'MDL-75318', final: true)]
68
    public function share_activity(): array {
64
    public function share_activity() {
69
        debugging('Method share_activity is deprecated, use share_resource instead.', DEBUG_DEVELOPER);
-
 
70
        return $this->share_resource();
65
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
Línea 71... Línea 66...
71
    }
66
    }
72
 
67
 
73
    /**
68
    /**