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--addVotesFromJson.md

34 lines
823 B
Markdown

## public Election::addVotesFromJson
### Description
```php
public Election->addVotesFromJson ( string $input ): int
```
Import votes from a Json source.
##### **input:** *```string```*
Json string input.
### Return value:
*(```int```)* Count of new registered vote.
---------------------------------------
### Related method(s)
* [Election::addVote](../Election%20Class/public%20Election--addVote.md)
* [Election::parseVotes](../Election%20Class/public%20Election--parseVotes.md)
* [Election::addCandidatesFromJson](../Election%20Class/public%20Election--addCandidatesFromJson.md)
---------------------------------------
### Examples and explanation
* **[Manual - Add Vote](https://github.com/julien-boudry/Condorcet/wiki/II-%23-B.-Vote-management-%23-1.-Add-Vote)**