22 $config =
new stdClass;
43 if(is_array($cart)) $poll_srl_list = $cart;
44 else $poll_srl_list= explode(
'|@|', $cart);
46 $poll_count = count($poll_srl_list);
47 if(!$poll_count)
return $this->
stop(
'msg_cart_is_null');
49 for($i=0;$i<$poll_count;$i++)
51 $poll_index_srl = trim($poll_srl_list[$i]);
52 if(!$poll_index_srl)
continue;
71 $args->pollIndexSrlList = array($poll_index_srl);
72 $args->list_count = 100;
78 foreach(
$output->data AS $key=>$value)
80 if($_SESSION[
'poll_management'][$value->poll_index_srl]) unset($_SESSION[
'poll_management'][$value->poll_index_srl]);
81 else $_SESSION[
'poll_management'][$value->poll_index_srl] =
true;
92 $dargs =
new stdClass;
94 $args->poll_index_srl = $poll_index_srl;
102 $dargs->poll_srl =
$output->data[0]->poll_srl;
105 $output = $oDB->executeQuery(
'poll.deletePollTitle',
$args);
112 $output = $oDB->executeQuery(
'poll.deletePollItem',
$args);
145 $args =
new stdClass;
146 $args->poll_srl = $poll_srl;
158 $output = $oDB->executeQuery(
'poll.deletePollTitle',
$args);
165 $output = $oDB->executeQuery(
'poll.deletePollItem',
$args);
setMessage($message= 'success', $type=NULL)
getController($module_name)
procPollAdminDeleteChecked()
Delete the polls selected in the administrator's page.
The admin controller class of the poll module.
deletePollTitle($poll_index_srl)
Delete the poll (when several questions are registered in one poll, delete this question) ...
procPollAdminInsertConfig()
Save the configurations.
setRedirectUrl($url= './', $output=NULL)
getAdminModel($module_name)
getInstance($db_type=NULL)
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
deletePoll($poll_srl)
Delete the poll (delete the entire poll)
The parent class of the poll module.