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

882 B

public Election::isRegisteredCandidate

Description

public Election->isRegisteredCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate [, bool $strictMode = true] ): bool

Check if a candidate is already taking part in the election.

candidate: CondorcetPHP\Condorcet\Candidate|string

Candidate object or candidate string name. String name works only if the strict mode is active.

strictMode: bool

Search comparison mode. In strict mode, candidate objects are compared strictly and a string input can't match anything. If strict mode is false, the comparison will be based on name.

Return value:

(bool) True / False