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

Portfolio API

De MoodleDocs
La revisió el 03:42, 27 feb 2007 per Martin Dougiamas (discussió | contribucions)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a:navegació, cerca

Quick ideas:

  1. The admin can set up portfolio plugins over Moodlenet or any other mehcanism as being trusted portfolios for this Moodle.
  2. The admin can specify defaults, and allow the user to pick one as well.
  3. Small function like portfolio_add_button() can be called from throughout Moodle to add a small button labelled "Add to portfolio". Can be next to forum posts, assignments, quiz attempts etc.
  4. Button links to central script portfolio/add.php with parameters to call back a lib.php function in the calling Moodle module, such as portfolio_add_item().
  5. This function takes the arguments and uses it to create a file (native format or a constructed html) plus metadata like user name etc, which it returns.
  6. portfolio/add.php then takes care of passing this data to the currently active portfolio plugin (portfolio/type/xxx).
  7. The plugin takes care of copying this data to the external system, and showing any screens that might be necessary, like more metadata etc, or a link to Mahara for more cool manipulation stuff etc.