public Election::parseVotes
Description
php
public Election->parseVotes ( string $input [, bool $isFile = false] ): int
Import votes from a text source. If any invalid vote is found inside, nothing is registered.
Parameters
input: string
String or valid path to a text file.
isFile: bool
If true, the input is evaluated as path to text file.
Return value
(int
) Count of the newly registered votes.