PageRenderTime 48ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/components/com_validation/constraints/md5.php

https://bitbucket.org/oligriffiths/com_validation
PHP | 18 lines | 12 code | 1 blank | 5 comment | 0 complexity | b3b30a2a3680d70473765e51bbde4a06 MD5 | raw file
  1. <?php
  2. /**
  3. * Created By: Oli Griffiths
  4. * Date: 11/12/2012
  5. * Time: 12:03
  6. */
  7. defined('KOOWA') or die('Protected resource');
  8. class ComValidationConstraintMd5 extends ComValidationConstraintDefault
  9. {
  10. protected function _initialize(KConfig $config)
  11. {
  12. $config->append(array(
  13. 'message' => '{{ target }} must be a valid MD5 hash, "{{ value }}" given',
  14. ));
  15. parent::_initialize($config);
  16. }
  17. }