mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
executeQuery()함수의 결과중 data값이 배열로 결과값이 생성되기를 원할 경우 사용할 수 있는 executeQueryArray() 함수 추가
이 함수는 결과값중 $output->data의 값이 배열이 아니면 배열로 만들어서 return하는 wrapping 함수일 뿐. git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2522 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3296e4666b
commit
e020b75e18
1 changed files with 13 additions and 0 deletions
|
|
@ -145,6 +145,19 @@
|
|||
return $oDB->executeQuery($query_id, $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB::executeQuery() 의 결과값을 무조건 배열로 처리하도록 하는 함수
|
||||
* @param query_id 쿼리 ID ( 모듈명.쿼리XML파일 )
|
||||
* @param args object 변수로 선언된 인자값
|
||||
* @return 처리결과
|
||||
**/
|
||||
function executeQueryArray($query_id, $args = null) {
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery($query_id, $args);
|
||||
if(!is_array($output->data)) $output->data = array($output->data);
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB::getNextSequence() 의 alias
|
||||
* @return big int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue