Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 279... Línea 279...
279
     * @param int $typeid which is the LTI deployment id.
279
     * @param int $typeid which is the LTI deployment id.
280
     * @param object $type tool instance in case the tool already exists.
280
     * @param object $type tool instance in case the tool already exists.
281
     *
281
     *
282
     * @return array the Client Registration as an associative array.
282
     * @return array the Client Registration as an associative array.
283
     */
283
     */
284
    public function config_to_registration(object $config, int $typeid, object $type = null): array {
284
    public function config_to_registration(object $config, int $typeid, ?object $type = null): array {
285
        $configarray = [];
285
        $configarray = [];
286
        foreach ((array)$config as $k => $v) {
286
        foreach ((array)$config as $k => $v) {
287
            if (substr($k, 0, 4) == 'lti_') {
287
            if (substr($k, 0, 4) == 'lti_') {
288
                $k = substr($k, 4);
288
                $k = substr($k, 4);
289
            }
289
            }