vanilla-application-yaga/rules/class.manualaward.php

36 lines
764 B
PHP

<?php if(!defined('APPLICATION')) exit();
include_once 'interface.yagarule.php';
/**
* This rule awards badges based on a user's join date
*
* @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';
}
}
?>