| 1 | <?php  | 
            ||
| 24 | class License extends AbstractRule  | 
            ||
| 25 |     { | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * The Rule shortname  | 
            ||
| 29 | *  | 
            ||
| 30 | * @var unknown  | 
            ||
| 31 | */  | 
            ||
| 32 | protected $name = 'license_key';  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * the error template  | 
            ||
| 36 | *  | 
            ||
| 37 | * @var string  | 
            ||
| 38 | */  | 
            ||
| 39 |         protected $error_message = '{field} isn\'t a valid license key'; | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * (non-PHPdoc)  | 
            ||
| 43 | *  | 
            ||
| 44 | * @see \mithra62\Validate\RuleInterface::validate()  | 
            ||
| 45 | * @ignore  | 
            ||
| 46 | *  | 
            ||
| 47 | */  | 
            ||
| 48 | public function validate($field, $input, array $params = array())  | 
            ||
| 53 | }  | 
            ||
| 54 | }  |