public function VotingApi_ResultCriteria::singleValue in Voting API 7.3
Retrieve the value of the first result matching the criteria.
File
- ./
votingapi.module, line 261 - A generalized voting API for Drupal.
Class
- VotingApi_ResultCriteria
- Criteria to select VotingApi_Results
Code
public function singleValue() {
$results = $this
->select();
return $results[0]->value;
}