lib.php 740 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Atto text editor iAssign plugin lib.
  4. *
  5. * @package atto_iassign
  6. * @copyright 2014 LInE-USP
  7. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  8. */
  9. defined('MOODLE_INTERNAL') || die();
  10. /**
  11. * Function for send strings for JS.
  12. */
  13. function atto_iassign_strings_for_js () {
  14. global $PAGE;
  15. }
  16. /**
  17. * Function for send params for JS.
  18. * @param unknown $elementid
  19. * @param unknown $options
  20. * @param unknown $fpoptions
  21. * @return multitype:string NULL
  22. */
  23. function atto_iassign_params_for_js ($elementid, $options, $fpoptions) {
  24. global $CFG, $COURSE;
  25. $params = array('iassign_wwwroot' => $CFG->wwwroot . "/mod/iassign/ilm_manager.php", 'iassign_course' => $COURSE->id);
  26. return $params;
  27. }