MDL-43531 Course: Remove deprecated functions from dnduploadlib

These functions were deprecated in 2.5 and are due for removal in 2.7.

Removing as per deprecation policy.
This commit is contained in:
Andrew Nicols 2014-01-02 11:19:59 +08:00
parent bbb291b7b7
commit e9a235e444

View File

@ -162,22 +162,6 @@ class dndupload_handler {
}
}
/**
* 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
@ -210,23 +194,6 @@ class dndupload_handler {
$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
@ -252,21 +219,6 @@ class dndupload_handler {
$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