예제 #1
0
    ?>
		</pre>
	
	<?php 
}
?>

 <br><br><hr>
 
<h2>Debug Data :</h2>

 <h4>Defaut method (not used explicitly before) :</h4>

 <pre>
<?php 
Condorcet::format(Condorcet::getDefaultMethod());
?>
 </pre>


 <h4>About object :</h4>

 <pre>
<?php 
Condorcet::format($election->getConfig());
?>
 </pre>

<!-- <h4>Condorcet::format (for debug only) :</h4>

 <pre>
예제 #2
0
 protected function condorcetBasicSubstitution($substitution) : string
 {
     if ($substitution) {
         if ($substitution === true) {
             $substitution = Condorcet::getDefaultMethod();
         }
         if (Condorcet::isAuthMethod($substitution)) {
             $algo = $substitution;
         } else {
             throw new CondorcetException(9, $substitution);
         }
     } else {
         $algo = Condorcet::CONDORCET_BASIC_CLASS;
     }
     return $algo;
 }
?>
 <br>

	 <pre>
	<?php 
Condorcet::format($election->getResult());
?>
	 </pre>

	<h3>Change it to MiniMax_Margin :</h3>
	<?php 
Condorcet::setDefaultMethod('Minimax_Margin');
?>

	<strong>Defaut:</strong> <?php 
echo Condorcet::getDefaultMethod();
?>
 <br>

	 <pre>
	<?php 
Condorcet::format($election->getResult());
?>
	 </pre>


<br><br><hr>

<h2>Vote manipulation :</h2>

	<h3>Display votes with tag "custom_tag_One"</h3>