git-svn-id: http://xe-core.googlecode.com/svn/trunk@277 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-06 03:10:21 +00:00
parent ba8e048039
commit 87cd70b321
6 changed files with 148 additions and 1 deletions

View file

@ -61,6 +61,29 @@
return $file_list;
}
/**
* @brief 모든 첨부파일을 시간 역순으로 가져옴 (관리자용)
**/
function getFileList($obj) {
// DB 객체 생성
$oDB = &DB::getInstance();
// 변수 설정
$args->sort_index = $obj->sort_index;
$args->page = $obj->page?$obj->page:1;
$args->list_count = $obj->list_count?$obj->list_count:20;
$args->page_count = $obj->page_count?$obj->page_count:10;
// file.getFileList쿼리 실행
$output = $oDB->executeQuery('file.getFileList', $args);
// 결과가 없거나 오류 발생시 그냥 return
if(!$output->toBool()||!count($output->data)) return $output;
return $output;
}
/**
* @brief 파일 출력
* 이미지나 멀티미디어등이 아닌 download를 받을 사용하는 method