Lines Matching refs:vote
72 function vote($data) { function in helper_plugin_schulzevote
93 foreach ($this->votes as $vote) {
94 foreach ($vote['data'] as $k => $v) {
95 foreach($vote['data'] as $k2 => $v2) {
106 foreach ($this->votes as $vote)
107 if ($vote['user'] === $_SERVER['REMOTE_USER'])
210 foreach ($this->votes as $id => $vote)
211 if ($vote['user'] === $_SERVER['REMOTE_USER']) {
220 foreach ($this->votes as $id => $vote) {
221 if ($vote['user'] === $_SERVER['REMOTE_USER']) {
222 return $vote['data'];
230 $vote = array('user' => 'unknown', 'data' => array());
233 $vote['data'][$cand] = 1;
238 $vote['data'][$cand2] += $score;
241 array_push($this->votes, $vote, $vote_this);