public function hasVoted($item_type, $item_id, $user_id=null, $ip=null)
	{
		return self::oneByScope($item_type, $item_id, $user_id, $ip)->get('id');
	}
public function hasVoted($item_type, $item_id, $user_id=null, $ip=null)
	{
		return self::oneByScope($item_type, $item_id, $user_id, $ip)->get('id');
	}
public function hasVoted ( $ item_type , $ item_id , $ user_id = null , $ ip = null ) { return self :: oneByScope ( $ item_type , $ item_id , $ user_id , $ ip ) -> get ( 'id' ) ; }
Check if a user has voted

@param   integer  $item_type  Item type
@param   integer  $item_id    Item ID
@param   integer  $user_id    User ID
@param   string   $ip         IP address
@return  integer
Check if a user has voted