Overview

Packages

  • None
  • Yaga

Classes

  • ActedModel
  • ActionController
  • ActionModel
  • AwardCombo
  • BadgeAwardModel
  • BadgeController
  • BadgeModel
  • BadgesController
  • BadgesModule
  • BestController
  • BestFilterModule
  • CakeDayPost
  • CommentCount
  • CommentMarathon
  • DiscussionBodyLength
  • DiscussionCategory
  • DiscussionCount
  • DiscussionPageCount
  • HasMentioned
  • HolidayVisit
  • LeaderBoardModule
  • LengthOfService
  • ManualAward
  • NecroPost
  • NewbieComment
  • PhotoExists
  • PostCount
  • PostReactions
  • QnAAnserCount
  • RankController
  • RankModel
  • ReactController
  • ReactionCount
  • ReactionModel
  • ReflexComment
  • RulesController
  • SocialConnection
  • Yaga
  • YagaController
  • YagaHooks

Interfaces

  • YagaRule
  • Overview
  • Package
  • Class
  • Tree
  • Todo
  • Download
 1: <?php if(!defined('APPLICATION')) exit();
 2: 
 3: /**
 4:  * This rule never awards badges. It can safely be used for special badges that
 5:  * only need to be manually awarded
 6:  *
 7:  * @author Zachary Doll
 8:  * @since 1.0
 9:  * @package Yaga
10:  */
11: class ManualAward implements YagaRule {
12: 
13:   public function Award($Sender, $User, $Criteria) {
14:     return FALSE;
15:   }
16: 
17:   public function Form($Form) {
18:     return '';
19:   }
20: 
21:   public function Validate($Criteria, $Form) {
22:     return;
23:   }
24: 
25:   public function Hooks() {
26:     return array();
27:   }
28: 
29:   public function Description() {
30:     $Description = T('Yaga.Rules.ManualAward.Desc');
31:     return Wrap($Description, 'div', array('class' => 'AlertMessage'));
32:   }
33: 
34:   public function Name() {
35:     return T('Yaga.Rules.ManualAward');
36:   }
37:   
38:   public function Interacts() {
39:     return FALSE;
40:   }
41: }
42: 
Yaga API documentation generated by ApiGen 2.8.0