* Get box.net file info
*
* @param string $fileid
- * @param array $params
- * @return array|null
+ * @return string|null
*/
function get_file_info($fileid) {
$this->_clearErrors();
$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;
/**
* Return the source information
*
- * @param stdClass $url
+ * @param string $photoid
* @return string|null
*/
public function get_file_source_info($photoid) {
/**
* Return the source information
*
- * @param stdClass $url
+ * @param string $photoid photo id
* @return string|null
*/
public function get_file_source_info($photoid) {
* 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;
/**
* 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;