00001 <?php 00002 00015 // $Id: FormValidatorPost.inc.php,v 1.5 2008/07/01 01:16:09 asmecher Exp $ 00016 00017 00018 import ('form.validation.FormValidator'); 00019 00020 class FormValidatorPost extends FormValidator { 00026 function FormValidatorPost(&$form, $message = 'form.postRequired') { 00027 parent::FormValidator($form, 'dummy', 'required', $message); 00028 } 00029 00035 function isValid() { 00036 return Request::isPost(); 00037 } 00038 00039 } 00040 00041 ?>
1.5.6