Ejemplo n.º 1
0
 public function __wakeup()
 {
     if (version_compare($this->getObjectVersion('MAJOR'), Condorcet::getVersion('MAJOR'), '!=')) {
         throw new CondorcetException(11, 'Your object version is ' . $this->getObjectVersion() . ' but the class engine version is ' . Condorcet::getVersion('ENV'));
     }
 }
Ejemplo n.º 2
0
		}
 	</style>
 </head>
 <body>

	<header style="text-align:center;">
		<img src="../../condorcet-logo.png" alt="Condorcet Class" style="width:15%;">
	</header>

	<h1><?php 
echo TEST_NAME;
?>
</h1>
	
	<em style="font-weight:bold;"><a href="https://github.com/julien-boudry/Condorcet" target="_blank">Condorcet Class</a> version : <?php 
echo Condorcet::getVersion();
?>
</em><br>

	<em>
		Number of Candidates : 
		<?php 
echo $election->countCandidates();
?>
		|
		Number of votes :
		<?php 
echo $election->countVotes();
?>
	</em>