public function hasVoted($user) {
		$votes = elgg_get_annotations(array(
			'guid' => $this->guid,
			'type' => "object",
			'subtype' => "poll",
			'annotation_name' => "vote",
			'annotation_owner_guid' => $user->guid,
			'limit' => 1
		));

		if ($votes) {
			return true;
		} else {
			return false;
		}
	}
public function hasVoted($user) {
		$votes = elgg_get_annotations(array(
			'guid' => $this->guid,
			'type' => "object",
			'subtype' => "poll",
			'annotation_name' => "vote",
			'annotation_owner_guid' => $user->guid,
			'limit' => 1
		));

		if ($votes) {
			return true;
		} else {
			return false;
		}
	}
public function hasVoted ( $ user ) { $ votes = elgg_get_annotations ( array ( 'guid' => $ this -> guid , 'type' => "object" , 'subtype' => "poll" , 'annotation_name' => "vote" , 'annotation_owner_guid' => $ user -> guid , 'limit' => 1 ) ) ; if ( $ votes ) { return true ; } else { return false ; } }
Check whether the user has voted in this poll

@param ElggUser $user
@return boolean
Check whether the user has voted in this poll