diff --git a/repository/equella/callback.php b/repository/equella/callback.php
index c4926d81b20..0a5b08346dd 100644
--- a/repository/equella/callback.php
+++ b/repository/equella/callback.php
@@ -15,10 +15,10 @@
// along with Moodle. If not, see .
/**
- * EQUELLA callback
+ * Callback for equella repository.
*
- * @since 2.0
- * @package repository
+ * @since 2.3
+ * @package repository_equella
* @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
diff --git a/repository/equella/db/access.php b/repository/equella/db/access.php
index 5217d856cf4..4a7d6ab9318 100644
--- a/repository/equella/db/access.php
+++ b/repository/equella/db/access.php
@@ -14,6 +14,17 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/**
+ * Capabilities for equella repository.
+ *
+ * @package repository_equella
+ * @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
+ * @author Dongsheng Cai
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
$capabilities = array(
'repository/equella:view' => array(
'captype' => 'read',
diff --git a/repository/equella/lang/en/repository_equella.php b/repository/equella/lang/en/repository_equella.php
index 74ace421113..f24ac9a2e31 100644
--- a/repository/equella/lang/en/repository_equella.php
+++ b/repository/equella/lang/en/repository_equella.php
@@ -13,6 +13,15 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+
+/**
+ * Strings for equella repository.
+ *
+ * @package repository_equella
+ * @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
$string['pluginname'] = 'EQUELLA repository';
$string['configplugin'] = 'Configuration for EQUELLA repository';
$string['search'] = 'Search EQUELLA';
diff --git a/repository/equella/lib.php b/repository/equella/lib.php
index 0db18361b73..25a544f59bf 100644
--- a/repository/equella/lib.php
+++ b/repository/equella/lib.php
@@ -14,8 +14,27 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/**
+ * This plugin is used to access equella repositories.
+ *
+ * @since 2.3
+ * @package repository_equella
+ * @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
require_once($CFG->dirroot . '/repository/lib.php');
+/**
+ * repository_equella class implements equella_client
+ *
+ * @since 2.3
+ * @package repository_equella
+ * @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
class repository_equella extends repository {
/** @var array mimetype filter */
private $mimetypes = array();
@@ -24,7 +43,7 @@ class repository_equella extends repository {
* Constructor
*
* @param int $repositoryid repository instance id
- * @param int|stdClass a context id or context object
+ * @param int|stdClass $context a context id or context object
* @param array $options repository options
*/
public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()) {
@@ -43,7 +62,7 @@ class repository_equella extends repository {
*
* @param string $path
* @param mixed $page
- * @param array
+ * @return array
*/
public function get_listing($path = null, $page = null) {
global $COURSE;
@@ -219,7 +238,7 @@ class repository_equella extends repository {
* @return array
*/
public static function get_instance_option_names() {
- $rv = array('equella_url','equella_select_restriction', 'equella_options',
+ $rv = array('equella_url', 'equella_select_restriction', 'equella_options',
'equella_shareid', 'equella_sharedsecret'
);
diff --git a/repository/equella/version.php b/repository/equella/version.php
index f6bce905d08..5b866efaa0c 100644
--- a/repository/equella/version.php
+++ b/repository/equella/version.php
@@ -14,6 +14,15 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/**
+ * Version information for equella repository.
+ *
+ * @since 2.3
+ * @package repository_equella
+ * @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2012060100; // The current plugin version (Date: YYYYMMDDXX).