Permalink
Browse files

MDL-33513 repositories - fix misleading phpdocs

  • Loading branch information...
danpoltawski committed Jun 14, 2012
1 parent 24b96f0 commit b2cf2b807f7a7c8d1a02ebb52038c61cc63a1494
Showing with 8 additions and 9 deletions.
  1. +2 −3 lib/boxlib.php
  2. +1 −1 repository/flickr/lib.php
  3. +1 −1 repository/flickr_public/lib.php
  4. +2 −2 repository/lib.php
  5. +2 −2 repository/s3/lib.php
View
@@ -192,8 +192,7 @@ function getfiletree($path, $params = array()) {
* 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 @@ function get_file_info($fileid) {
$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;
@@ -318,7 +318,7 @@ public function supported_returntypes() {
/**
* Return the source information
*
* @param stdClass $url
* @param string $photoid
* @return string|null
*/
public function get_file_source_info($photoid) {
@@ -529,7 +529,7 @@ public function supported_returntypes() {
/**
* Return the source information
*
* @param stdClass $url
* @param string $photoid photo id
* @return string|null
*/
public function get_file_source_info($photoid) {
View
@@ -2211,8 +2211,8 @@ public static function sync_external_file(stored_file $file) {
* 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;
View
@@ -122,8 +122,8 @@ public function get_file($filepath, $file = '') {
/**
* 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;

0 comments on commit b2cf2b8

Please sign in to comment.