final move of files
[web.mtrack] / MTrack / Captcha.php
1 <?php 
2
3 require_once 'MTrack/Interface/Captcha.php';
4
5 class MTrack_Captcha 
6 {
7   static $impl = null;
8
9   static function register(MTrack_Implementation_Captcha $impl)
10   {
11         self::$impl = $impl;
12   }
13
14   static function emit($form)
15   {
16     if (self::$impl !== null) {
17       return self::$impl->emit($form);
18     }
19     return '';
20   }
21
22   static function check($form)
23   {
24     if (self::$impl !== null) {
25       return self::$impl->check($form);
26     }
27     return true;
28   }
29 }