mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
#19705602 point module refactoring, for db select column specify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8360 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a621503c5c
commit
72df762337
2 changed files with 4 additions and 3 deletions
|
|
@ -74,7 +74,8 @@
|
|||
$args->list_count = 20;
|
||||
$args->page = Context::get('page');
|
||||
|
||||
$output = $oPointModel->getMemberList($args);
|
||||
$columnList = array('member.member_srl', 'member.user_id', 'member.user_name', 'member.nick_name', 'point.point');
|
||||
$output = $oPointModel->getMemberList($args, $columnList);
|
||||
// context::set for writing into a template
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
/**
|
||||
* @brief Get a list of points members list
|
||||
**/
|
||||
function getMemberList($args = null) {
|
||||
function getMemberList($args = null, $columnList = array()) {
|
||||
// Arrange the search options
|
||||
$args->is_admin = Context::get('is_admin')=='Y'?'Y':'';
|
||||
$args->is_denied = Context::get('is_denied')=='Y'?'Y':'';
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
$query_id = 'point.getMemberList';
|
||||
}
|
||||
|
||||
$output = executeQuery($query_id, $args);
|
||||
$output = executeQuery($query_id, $args, $columnList);
|
||||
|
||||
if($output->total_count) {
|
||||
$oModuleModel = &getModel('module');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue