MDL-33513 repositories - fix misleading phpdocs
authorDan Poltawski <dan@moodle.com>
Thu, 14 Jun 2012 02:52:59 +0000 (10:52 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 14 Jun 2012 02:55:30 +0000 (10:55 +0800)
lib/boxlib.php
repository/flickr/lib.php
repository/flickr_public/lib.php
repository/lib.php
repository/s3/lib.php

index 2225038..e1e8387 100644 (file)
@@ -192,8 +192,7 @@ class boxclient {
      * Get box.net file info
      *
      * @param string $fileid
-     * @param array $params
-     * @return array|null
+     * @return string|null
      */
     function get_file_info($fileid) {
         $this->_clearErrors();
@@ -205,7 +204,7 @@ class boxclient {
         $http = new curl(array('debug'=>$this->debug, 'cache'=>true, 'module_cache'=>'repository'));
         $xml = $http->get($this->_box_api_url, $params);
         $o = simplexml_load_string(trim($xml));
-        if($o->status == 's_get_file_info') {
+        if ($o->status == 's_get_file_info') {
             return $o->info;
         } else {
             return null;
index 368e8ec..6886638 100644 (file)
@@ -318,7 +318,7 @@ class repository_flickr extends repository {
     /**
      * Return the source information
      *
-     * @param stdClass $url
+     * @param string $photoid
      * @return string|null
      */
     public function get_file_source_info($photoid) {
index f10bd51..4ec7939 100644 (file)
@@ -529,7 +529,7 @@ class repository_flickr_public extends repository {
     /**
      * Return the source information
      *
-     * @param stdClass $url
+     * @param string $photoid photo id
      * @return string|null
      */
     public function get_file_source_info($photoid) {
index f7aa41a..446e431 100644 (file)
@@ -2211,8 +2211,8 @@ abstract class repository {
      * File manager needs to know the original file information before copying
      * to draft area, so we append these information in mdl_files.source field
      *
-     * @param string $sourcefield
-     * @param string
+     * @param string $source
+     * @return string serialised source field
      */
     public static function build_source_field($source) {
         $sourcefield = new stdClass;
index b5604c9..5558620 100644 (file)
@@ -122,8 +122,8 @@ class repository_s3 extends repository {
     /**
      * Return the source information
      *
-     * @param stdClass $url
-     * @return string|null
+     * @param stdClass $filepath
+     * @return string
      */
     public function get_file_source_info($filepath) {
         return 'Amazon S3:' . $filepath;