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--parseVotes.md
2022-09-21 14:01:45 +02:00

1.1 KiB

public Election::parseVotes

Description

public Election->parseVotes ( string $input [, bool $isFile = false] ): int

Import votes from a text source. If any invalid vote is found inside, nothing are registered.

input: string

String or valid path to a text file.

isFile: bool

If true, the input is evalatued as path to text file.

Return value:

(int) Count of the new registered vote.



Examples and explanation