issue 70 file management UI/UX modify

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8715 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-03 07:23:30 +00:00
parent 0cf931d098
commit 35d02e8d3e
9 changed files with 146 additions and 65 deletions

View file

@ -125,13 +125,28 @@
**/
function getFile($file_srl, $columnList = array()) {
$args->file_srl = $file_srl;
$output = executeQuery('file.getFile', $args, $columnList);
$output = executeQueryArray('file.getFile', $args, $columnList);
if(!$output->toBool()) return $output;
$file = $output->data;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
// old version compatibility
if(count($output->data) == 1)
{
$file = $output->data[0];
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
return $file;
return $file;
}
else
{
$fileList = array();
foreach($output->data AS $key=>$value)
{
$file = $value;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
array_push($fileList, $file);
}
return $fileList;
}
}
/**