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.
String or valid path to a text file.
If true, the input is evalatued as path to text file.
(int
) Count of the new registered vote.
- Election::addVote
- Election::parseCandidates
- Election::parseVotesWithoutFail
- Election::addVotesFromJson