Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: core_role_assign_roles to asssign mentor role

$
0
0
by Doug Stevens.  

Just a bit more info:

A var_dump of $params above reveals what I believe are the correct arguments.  I can confirm that the userid and instanceid are the correct parent and student users in Moodle:

 

array(1) {

  ["assignments"]=>

  array(530) {

.

.

.

    [209]=>

    array(5) {

      ["roleid"]=>

      int(9)

      ["userid"]=>

      int(37597)

      ["instanceid"]=>

      int(34248)

      ["contextid"]=>

      int(30)

      ["contextlevel"]=>

      string(4) "user"

    }

.

.

.

  }

}



Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>