Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org
- Good idea--Tim Hunt 03:16, 16 June 2009 (UTC)
are in_head and asap now obsolete? It seems in_head is replaced by the second parameter to the js class constructor, is there an alternative for asap? --Alastair Hole 17:46, 13 June 2010 (UTC)
Some information on using YUI calls?
Unless I've missed something, I can't see any information on how to use the YUI library in Moodle 2. It's not intuitively obvious either. --Howard Miller 10:44, 8 February 2011 (UTC)
What does M.mod_mymod.init_something in general
What if my 'module' is a block or a report or some-such? What is the general syntax of this string? --Howard Miller 11:20, 8 February 2011 (UTC)
Moodle 2.0 has a naming scheme for plugins that some-how ended up being called "Frankenstyle". It is basically what the second argument to get_string would be, so block_myblock, qtype_myqtype, gradereport_something. Except that, in the case of modules, you add the mod_ prefix there, so it fits the general pattern plugintype_pluginname. The full list of types is in get_plugin_types in moodlelib.php. So, the bit after the M. is the Frankenstyle name of the plugin. After the name of your plugin, you can do whatever you like.--Tim Hunt 12:13, 8 February 2011 (UTC)