Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"MDL-21474, fixed mahara phpdocs"
  • Loading branch information
Dongsheng Cai committed Mar 16, 2010
1 parent 249c4f6 commit 560ad96
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions repository/mahara/repository.class.php
Expand Up @@ -32,22 +32,21 @@ class repository_mahara extends repository {

/**
* Constructor
* @global <type> $SESSION
* @global <type> $action
* @global <type> $CFG
* @param <type> $repositoryid
* @param <type> $context
* @param <type> $options
* @global object $CFG
* @param int $repositoryid
* @param int $context
* @param array $options
*/
public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()) {
global $SESSION, $action, $CFG;
global $CFG;
parent::__construct($repositoryid, $context, $options);
$this->mnet = get_mnet_environment();
}

/**
*
* @return <type>
/**
* Check if user logged in to mahara
* @global object $SESSION
* @return boolean
*/
public function check_login() {
//check session
Expand All @@ -58,11 +57,10 @@ public function check_login() {

/**
* Display the file listing - no login required
* @global <type> $SESSION
* @param <type> $ajax
* @return <type>
* @global object $SESSION
* @return array
*/
public function print_login($ajax = true) {
public function print_login() {
global $SESSION, $CFG, $DB;
//jump to the peer to create a session

Expand All @@ -83,21 +81,21 @@ public function print_login($ajax = true) {

/**
* Display the file listing for the search term
* @param <type> $search_text
* @return <type>
* @param string $search_text
* @return array
*/
public function search($search_text) {
return $this->get_listing('', '', $search_text);
}

/**
* Retrieve the file listing - file picker function
* @global <type> $CFG
* @global <type> $DB
* @global <type> $USER
* @param <type> $encodedpath
* @param <type> $search
* @return <type>
* @global object $CFG
* @global object $DB
* @global object $USER
* @param string $encodedpath
* @param string $search
* @return array
*/
public function get_listing($path = null, $page = 1, $search = '') {
global $CFG, $DB, $USER, $OUTPUT;
Expand Down Expand Up @@ -258,9 +256,9 @@ public function get_file($id, $file = '') {

/**
* Add Instance settings input to Moodle form
* @global <type> $CFG
* @global <type> $DB
* @param <type> $
* @global object $CFG
* @global object $DB
* @param object $mform
*/
public function instance_config_form($mform) {
global $CFG, $DB;
Expand Down Expand Up @@ -305,7 +303,7 @@ public function instance_config_form($mform) {

/**
* Names of the instance settings
* @return <type>
* @return int
*/
public static function get_instance_option_names() {
///the administrator just need to set a peer
Expand Down

0 comments on commit 560ad96

Please sign in to comment.