Lines Matching refs:poll

41   var $poll         = "poll-";		// prefix for polling (evaluation per definition)  variable in glossary
343 $poll = $this->readGlossary ($md5id, $this->poll, LOCK_SH);
344 list ($scoreVal, $scoreImg) = $this->getScore ($poll);
353 if (!$poll|| ($poll['up']+$poll['down'] < 1))
360 function getScore ($poll) { argument
362 if ($poll && $poll["up"] + $poll["down"] > 0) {
363 $scoreVal = (($poll["up"] - $poll["down"]) /
364 (max (5, $poll["up"] + $poll["down"])));
373 function poll () { function in glossary
378 if (! isset ($all[$md5id]) || !in_array ($opinion, $this->statusFields [$this->poll])) {
382 $poll = $this->readGlossary ($md5id, $this->poll, LOCK_EX);
383 if (!$poll)
384 $poll = array ("word" => $all[$md5id]['word'], "up" => 0, "down" => 0);
385 if ($poll [$opinion] != PHP_INT_MAX)
386 $poll [$opinion]++;
387 $this->writeGlossary ($md5id, $poll, $this->poll);
395 $poll = $this->readGlossary ($md5id, $this->poll, LOCK_EX);
396 if (!$poll)
397 $poll = array ("word" => $word, "view" => 0, "up" => 0, "down" => 0);
398 $poll ["view"]++;
399 $this->writeGlossary ($md5id, $poll, $this->poll);
400 return $poll;
490 return $this->getGlosarySize ($this->poll, $this->md5ns);
587 $poll = $this->readAllGlossary ($this->poll);
637 $poll [$md5id] = $this->incView ($md5id, $word);
641 list ($scoreVal, $scoreImg) = $this->getScore ($poll [$md5id]);
645 ' date="'.$record['date'].'" view="'.$poll [$md5id]['view'].'" score="'.$scoreVal.'">'.NL.
812 if (!eregi ($this->poll.'(.*)\.xml$', $file, $regs))
838 $this->getGlosarySize ($this->poll, $file));
848 list ($ns, $def, $prop, $poll) = $data;
856 ' <td>'.$poll.'</td>'.NL.