mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
#19705602 refactoring source, when specify db table column parameter in file module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8341 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e1ee2ac134
commit
612c4a6fbd
5 changed files with 15 additions and 10 deletions
|
|
@ -122,9 +122,9 @@
|
|||
/**
|
||||
* @brief Get file information
|
||||
**/
|
||||
function getFile($file_srl) {
|
||||
function getFile($file_srl, $columnList = array()) {
|
||||
$args->file_srl = $file_srl;
|
||||
$output = executeQuery('file.getFile', $args);
|
||||
$output = executeQuery('file.getFile', $args, $columnList);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$file = $output->data;
|
||||
|
|
@ -136,10 +136,10 @@
|
|||
/**
|
||||
* @brief Return all files which belong to a specific document
|
||||
**/
|
||||
function getFiles($upload_target_srl) {
|
||||
function getFiles($upload_target_srl, $columnList = array()) {
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
$args->sort_index = 'file_srl';
|
||||
$output = executeQuery('file.getFiles', $args);
|
||||
$output = executeQuery('file.getFiles', $args, $columnList);
|
||||
if(!$output->data) return;
|
||||
|
||||
$file_list = $output->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue