diff --git a/repository/flickr_public/repository.class.php b/repository/flickr_public/repository.class.php
index a2351a800e4..9868c523891 100644
--- a/repository/flickr_public/repository.class.php
+++ b/repository/flickr_public/repository.class.php
@@ -134,7 +134,7 @@ class repository_flickr_public extends repository {
public function print_search() {
parent::print_search();
- echo ' ';
+ echo '
';
return true;
}
diff --git a/repository/javascript.php b/repository/javascript.php
index b7c3f3ee941..88f16bb5b60 100644
--- a/repository/javascript.php
+++ b/repository/javascript.php
@@ -1,11 +1,9 @@
print_login();
- * // call get_listing, and print result
- * $repo->print_listing();
- * // print a search box
- * $repo->print_search();
- *
- * @version 1.0 dev
- * @package repository
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- */
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(dirname(dirname(__FILE__)) . '/lib/filelib.php');
require_once(dirname(dirname(__FILE__)) . '/lib/formslib.php');
@@ -437,9 +414,29 @@ function repository_get_types($visible=null) {
}
/**
- * The base class for all repository plugins
+ * This is the base class of the repository class
+ *
+ * To use repository plugin, see:
+ * http://docs.moodle.org/en/Development:Repository_How_to_Create_Plugin
+ *
+ * class repository is an abstract class, some functions must be implemented in subclass.
+ *
+ * See an example: repository/boxnet/repository.class.php
+ *
+ * A few notes:
+ * // for ajax file picker, this will print a json string to tell file picker
+ * // how to build a login form
+ * $repo->print_login();
+ * // for ajax file picker, this will return a files list.
+ * $repo->get_listing();
+ * // this function will be used for non-javascript version.
+ * $repo->print_listing();
+ * // print a search box
+ * $repo->print_search();
+ *
+ * @package repository
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
-
abstract class repository {
public $id;
public $context;
@@ -879,7 +876,7 @@ abstract class repository {
echo '';
echo '';
echo '';
- echo '';
+ echo '