37 lines
825 B
PHP
37 lines
825 B
PHP
<?php if(!defined('APPLICATION')) exit();
|
|
include_once 'interface.yagarule.php';
|
|
/**
|
|
* This rule never awards badges. It can safely be used for special badges that
|
|
* only need to be manually awarded
|
|
*
|
|
* @author Zachary Doll
|
|
* @since 1.0
|
|
* @package Yaga
|
|
*/
|
|
class ManualAward implements YagaRule {
|
|
|
|
public function Award($Sender, $User, $Criteria) {
|
|
return FALSE;
|
|
}
|
|
|
|
public function Form($Form) {
|
|
return $this->Description();
|
|
}
|
|
|
|
public function Hooks() {
|
|
return array();
|
|
}
|
|
|
|
public function Description() {
|
|
$Description = 'This rule will <strong>never</strong> be awarded <em>automatically</em> and should be kept disabled. Use it for custom badges you want to hand out manually.';
|
|
return $Description;
|
|
|
|
}
|
|
|
|
public function Name() {
|
|
return 'Manual Award';
|
|
}
|
|
}
|
|
|
|
?>
|