芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/mod/url/tests/generator/lib.php
. /** * mod_url data generator. * * @package mod_url * @category test * @copyright 2013 Marina Glancy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * mod_url data generator class. * * @package mod_url * @category test * @copyright 2013 Marina Glancy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_url_generator extends testing_module_generator { public function create_instance($record = null, array $options = null) { global $CFG; require_once($CFG->libdir.'/resourcelib.php'); // Add default values for url. $record = (array)$record + array( 'display' => RESOURCELIB_DISPLAY_AUTO, 'externalurl' => 'http://moodle.org/', ); return parent::create_instance($record, (array)$options); } }