1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/condorcet/Documentation/Election Class/public Election--allowsVoteWeight.md
2022-09-21 14:01:45 +02:00

28 lines
680 B
Markdown

## public Election::allowsVoteWeight
### Description
```php
public Election->allowsVoteWeight ( [bool $rule = true] ): bool
```
Set the setting and reset all result data.
Then the weight of votes (if specified) will be taken into account when calculating the results. Otherwise all votes will be considered equal.
By default, the voting weight is not activated and all votes are considered equal.
##### **rule:** *```bool```*
New rule.
### Return value:
*(```bool```)* Return True
---------------------------------------
### Related method(s)
* [Election::isVoteWeightAllowed](../Election%20Class/public%20Election--isVoteWeightAllowed.md)