Best practice forum (Archived)

Parameters rb_source_assign constructor

 
Olumuyiwa Taiwo
Parameters rb_source_assign constructor
door Olumuyiwa Taiwo - Monday, 25 July 2016, 09:20 AM
Groep Partners

Hi,

In going from Totara version 2.7 to 2.9, the signature of the constructor for the class rb_source_assign has changed from:

public function __construct() {...}

to:

public function __construct($groupid, rb_global_restriction_set $globalrestrictionset = null) {...}

I created a custom report builder source in v2.7.x that extends that class and I now need to upgrade my code to work with v2.9.x. 

Unfortunately I haven't been able to find any documentation for the new constructor. 

Does anyone know the type / value of the parameters, especially $groupid?

Thanks,

Muyi