Skip to content

public Election::sumValidVoteWeightsWithConstraints

Read it at the source

Description

php
public Election->sumValidVoteWeightsWithConstraints ( [array|string|null $tags = null , int|bool $with = true] ): int

Sum total votes weight in this election. If vote weight functionality is disabled (default setting), it will return the number of registered votes. This method doesn't ignore votes constraints, only valid votes will be counted.

Parameters

tags: array|string|null

Tag in string separated by commas, or an Array.

with: int|bool

Count Votes with this tag or without this tag.

Return value

(int) Total vote weight


Released under the MIT License.