Revert MDL-33513
This reverts commitb2cf2b807f. This reverts commit24b96f0170. This reverts commit39c60294a6. This reverts commit8a288971e2.
This commit is contained in:
@@ -188,29 +188,6 @@ class boxclient {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get box.net file info
|
||||
*
|
||||
* @param string $fileid
|
||||
* @return string|null
|
||||
*/
|
||||
function get_file_info($fileid) {
|
||||
$this->_clearErrors();
|
||||
$params = array();
|
||||
$params['action'] = 'get_file_info';
|
||||
$params['file_id'] = $fileid;
|
||||
$params['auth_token'] = $this->auth_token;
|
||||
$params['api_key'] = $this->api_key;
|
||||
$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') {
|
||||
return $o->info;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $sax
|
||||
* @param array $tree Passed by reference
|
||||
|
||||
Reference in New Issue
Block a user