Example #1
0
 function close()
 {
     $database = new Database();
     if ($database->connect()) {
         $pollid = $this->getPollDetails('PollId');
         $details['PollCloseStatus'] = $database->closePoll($pollid['PollId']);
         $database->disconnect();
         unset($database);
         if ($details != NULL) {
             $this->_activity = 0;
             return $details;
         }
     }
 }