public Election::sumValidVoteWeightsWithConstraints

September 3, 2025 ยท View on GitHub

Read it at the source

Description

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