No Description

ValidatorDtd.php 366B

123456789101112131415161718192021222324
  1. <?php
  2. class LtValidatorDtd
  3. {
  4. public $label;
  5. public $rules;
  6. public $messages;
  7. public function __construct($label, $rules, $messages = null)
  8. {
  9. $this->label = $label;
  10. foreach($rules as $key => $rule)
  11. {
  12. $this->rules[$key] = $rule;
  13. }
  14. if ($messages)
  15. {
  16. foreach($messages as $key => $message)
  17. {
  18. $this->messages[$key] = $message;
  19. }
  20. }
  21. }
  22. }