}
}
- /**
- * No external code should be directly adding new types - they should be added via a 'addtypes' array, returned
- * by MODNAME_dndupload_register.
- *
- * @deprecated deprecated since Moodle 2.5
- * @param string $identifier
- * @param array $datatransfertypes
- * @param string $addmessage
- * @param string $namemessage
- * @param int $priority
- */
- public function add_type($identifier, $datatransfertypes, $addmessage, $namemessage, $priority=100) {
- debugging('add_type() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.');
- $this->register_type($identifier, $datatransfertypes, $addmessage, $namemessage, '', $priority);
- }
-
/**
* Used to add a new mime type that can be drag and dropped onto a
* course displayed in a browser window
$this->types[$identifier] = $add;
}
- /**
- * No external code should be directly adding new type handlers - they should be added via a 'addtypes' array, returned
- * by MODNAME_dndupload_register.
- *
- * @deprecated deprecated since Moodle 2.5
- * @param string $type The name of the type (as declared in add_type)
- * @param string $module The name of the module to handle this type
- * @param string $message The message to show the user if more than one handler is registered
- * for a type and the user needs to make a choice between them
- * @param bool $noname If true, the 'name' dialog should be disabled in the pop-up.
- * @throws coding_exception
- */
- public function add_type_handler($type, $module, $message, $noname) {
- debugging('add_type_handler() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.');
- $this->register_type_handler($type, $module, $message, $noname);
- }
-
/**
* Used to declare that a particular module will handle a particular type
* of dropped data
$this->types[$type]->handlers[] = $add;
}
- /**
- * No external code should be directly adding new file handlers - they should be added via a 'files' array, returned
- * by MODNAME_dndupload_register.
- *
- * @deprecated deprecated since Moodle 2.5
- * @param string $extension The file extension to handle ('*' for all types)
- * @param string $module The name of the module to handle this type
- * @param string $message The message to show the user if more than one handler is registered
- * for a type and the user needs to make a choice between them
- */
- public function add_file_handler($extension, $module, $message) {
- debugging('add_file_handler() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.');
- $this->register_file_handler($extension, $module, $message);
- }
-
/**
* Used to declare that a particular module will handle a particular type
* of dropped file