issue 2687. problem of checking isvalid

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@12253 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-11-19 07:23:37 +00:00
parent 156d7655e9
commit 40a4a89de1
4 changed files with 6 additions and 4 deletions

View file

@ -177,9 +177,10 @@
* @param string $sortIndex The column that used as sort index
* @return array Returns array of object that contains file information. If no result returns null.
**/
function getFiles($upload_target_srl, $columnList = array(), $sortIndex = 'file_srl') {
function getFiles($upload_target_srl, $columnList = array(), $sortIndex = 'file_srl', $ckValid = false) {
$args->upload_target_srl = $upload_target_srl;
$args->sort_index = $sortIndex;
if($ckValid) $args->isvalid = 'Y';
$output = executeQuery('file.getFiles', $args, $columnList);
if(!$output->data) return;