Re: [Hw4mdl-devel] Catalyst code review - comments please
Brought to you by:
jhlinder,
trollinger
From: Thomas R. <tro...@wi...> - 2008-02-04 22:54:34
|
Hi Ashley, StudentBis is a temporary role. It used when the teacher switches his role to a student role by the drop down "Switch role to ..." . This role has the same behavior than student role except for the launching of the tools. In this case, a popup will alert the teacher that the tool is launched with the student privilege. Do you know which functions replace isteacher() isadmin() in the new version of moodle? Best Thomas On 3 févr. 08, at 21:07, Ashley Holman wrote: > Hi Thomas, > > In the getRoleForWimbaTools() function in WimbaLib.php, one of the > return values is "StudentBis". What is that role and is it still > needed? I'm working on using capabilities to define the Wimba roles > so wanted to see which situation "StudentBis" should be used in... > does it need its own capability defined? > > Also I note that the isteacher() isadmin() etc functions are in > Moodle's lib/deprecatedlib.php as of 1.7 so its probably important > that these functions be no longer used. > > Thanks > Ashley. > > Thomas Rollinger wrote: >> >> Hi, >> >> It can be great if you can make the patch. >> >> Can you please start from the code of the branche "team/Thomas" >> because trunk is not up to date and will not working correctly. >> >> >> Best >> >> Thomas >> >> On 16 janv. 08, at 19:08, Ashley Holman wrote: >> >> >>> Hi Thomas, >>> >>> >>>>> Since the review, we've realised ... this module needs to define >>>>> >>>> some >>>> >>>>> capabilities and then use has_capability() >>>>> >>>> Can you provide me more informations? >>>> >>>> >>> I think a capability could be defined for being an instructor for >>> the >>> Wimba tools. At the moment the getRoleForWimbaTools() function in >>> WimbaCommons.php checks isstudent(), isteacher(), isadmin() etc. >>> This >>> could be replaced with has_capability(), and the default >>> capabilities >>> could be set up to match the current behaviour. Ie, the capability >>> mod/liveclassroom:instructor would be assigned to the Teacher, >>> Course >>> Creator, and Admin roles. This would allow for better customisation >>> of >>> roles, and work in different contexts where roles are overridden >>> etc. >>> >>> If you are interested I can make a patch. >>> >>> Cheers >>> Ashley. >>> >>> PS. sorry for duplicate message - forgot to CC the list on the first >>> one >>> >>> -- >>> Ashley Holman >>> Software Engineer >>> NetSpot Pty Ltd >>> 183 Melbourne Street, North Adelaide, 5006 >>> Ph: +618 8361 6800 Fax: +618 8361 6811 >>> >>> >>> >> > > -- > Ashley Holman > Software Engineer > NetSpot Pty Ltd > 183 Melbourne Street, North Adelaide, 5006 > Ph: +618 8361 6800 Fax: +618 8361 6811 Thomas Rollinger Software Engineer Wimba - People teach People 10 East 40th Street, 11th floor New York, NY 10016 Tel : +1 646 861 5117 Fax: +1 212 533 6041 tro...@wi... http://www.wimba.com Connect & Collaborate at our Users Conference! Wimba Connect 2008 March 2-5, 2008 in Orlando www.wimba.com/connect08 |