mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#19705602 session, trackback, poll module refactoring, DB Column select specify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8364 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ca1e187274
commit
4f03c14134
3 changed files with 11 additions and 7 deletions
|
|
@ -35,17 +35,18 @@
|
|||
* Return the result after checking if the poll has responses
|
||||
**/
|
||||
function getPollHtml($poll_srl, $style = '', $skin = 'default') {
|
||||
|
||||
$args->poll_srl = $poll_srl;
|
||||
// Get the information related to the survey
|
||||
$output = executeQuery('poll.getPoll', $args);
|
||||
$columnList = array('poll_count', 'stop_date');
|
||||
$output = executeQuery('poll.getPoll', $args, $columnList);
|
||||
if(!$output->data) return '';
|
||||
|
||||
$poll->style = $style;
|
||||
$poll->poll_count = (int)$output->data->poll_count;
|
||||
$poll->stop_date = $output->data->stop_date;
|
||||
|
||||
$output = executeQuery('poll.getPollTitle', $args);
|
||||
$columnList = array('poll_index_srl', 'title', 'checkcount', 'poll_count');
|
||||
$output = executeQuery('poll.getPollTitle', $args, $columnList);
|
||||
if(!$output->data) return;
|
||||
if(!is_array($output->data)) $output->data = array($output->data);
|
||||
foreach($output->data as $key => $val) {
|
||||
|
|
@ -90,7 +91,8 @@
|
|||
$poll->poll_count = (int)$output->data->poll_count;
|
||||
$poll->stop_date = $output->data->stop_date;
|
||||
|
||||
$output = executeQuery('poll.getPollTitle', $args);
|
||||
$columnList = array('poll_index_srl', 'checkcount', 'poll_count');
|
||||
$output = executeQuery('poll.getPollTitle', $args, $columnList);
|
||||
if(!$output->data) return;
|
||||
if(!is_array($output->data)) $output->data = array($output->data);
|
||||
foreach($output->data as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
if(!$session_key || !$this->session_started) return;
|
||||
|
||||
$args->session_key = $session_key;
|
||||
$output = executeQuery('session.getSession', $args);
|
||||
$columnList = array('session_key', 'cur_mid', 'val');
|
||||
$output = executeQuery('session.getSession', $args, $columnList);
|
||||
// Confirm there is a table created if read error occurs
|
||||
if(!$output->toBool()) {
|
||||
$oDB = &DB::getInstance();
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@
|
|||
/**
|
||||
* @brief Wanted a trackback information
|
||||
**/
|
||||
function getTrackback($trackback_srl) {
|
||||
function getTrackback($trackback_srl, $columnList = array()) {
|
||||
$args->trackback_srl = $trackback_srl;
|
||||
return executeQuery('trackback.getTrackback', $args);
|
||||
$output = executeQuery('trackback.getTrackback', $args, $columnList);
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue