wwwroot.$source; return $CFG->wwwroot.'/'.$source; } /** * Render the given slide for browser output -- NOTE: render to a string, and return the string. * The title of the slide need not be included -- simply the basic iFrame or embedded player etc. * @param SloodlePresenterSlide $slide An object containing the raw slide data. * @return string */ function render_slide_for_browser($slide) { $url = $this->get_absolute_url($slide->source); $framewidth = 500; $frameheight = 500; if (isset($slide->presenter)) { $framewidth = $slide->presenter->get_frame_width(); $frameheight = $slide->presenter->get_frame_height(); } $output = ""; return $output; } /** * Render the given slide for virtual-world output. * This returns two items of data in a numeric array. * The first is the virtual world compatible type identifier: web, image, video, or audio (or a mime type). * The second is the absolute URL to give it. * @param SloodlePresenterSlide $slide An object containing the raw slide data. * @return array Numeric array containg (type, url) */ function render_slide_for_sl($slide) { return array('text/html', $this->get_absolute_url($slide->source)); } /** * Gets the human-readable name of this plugin. * This MUST be overridden by base classes. If not, it will just return the name of the class. * @param string $lang Optional -- can specify the language we want the plugin name in, as an identifier like "en_utf8". If unspecified, then the current Moodle language should be used. * @access public * @return string The human-readable name of this plugin */ function get_plugin_name($lang = null) { return 'Web'; } /** * Gets the internal version number of this plugin. * This MUST be overridden. * This should be a number like the internal version number for Moodle modules, containing the date and release number. * Format is: YYYYMMDD##. * For example, "2009012302" would be the 3rd release on the 23rd January 2009. * @return int The version number of this module. */ function get_version() { return 2009050600; } } ?>