Skip to content

Commit

Permalink
Merge pull request #67 from modul-is/rules
Browse files Browse the repository at this point in the history
Form rules
  • Loading branch information
vodictomas authored Apr 2, 2024
2 parents 958387a + 8e53215 commit d6e62d1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,41 @@

class Form extends \Nette\Application\UI\Form
{
/** @deprecated use Form::GreaterEqual */
public const GREATER_EQUAL = \Nette\Application\UI\Form::MIN;

/** @deprecated use Form::LessEqual */
public const LESS_EQUAL = \Nette\Application\UI\Form::MAX;

/** @deprecated use Form::Greater */
public const GREATER = '\ModulIS\Form\FormValidator::greater';

/** @deprecated use Form::Less */
public const LESS = 'ModulIS\Form\FormValidator::less';

/** @deprecated use Form::SameLength */
public const SAME_LENGTH = 'ModulIS\Form\FormValidator::sameLength';

/** @deprecated use Form::validateRC */
public const VALIDATE_RC = 'ModulIS\Form\FormValidator::validateRC';

/** @deprecated use Form::validateIC */
public const VALIDATE_IC = 'ModulIS\Form\FormValidator::validateIC';

public const GreaterEqual = \Nette\Application\UI\Form::MIN;

public const LessEqual = \Nette\Application\UI\Form::MAX;

public const Greater = '\ModulIS\Form\FormValidator::greater';

public const Less = 'ModulIS\Form\FormValidator::less';

public const SameLength = 'ModulIS\Form\FormValidator::sameLength';

public const ValidateRC = 'ModulIS\Form\FormValidator::validateRC';

public const ValidateIC = 'ModulIS\Form\FormValidator::validateIC';

public ?string $color = null;

public bool $ajax = false;
Expand Down

0 comments on commit d6e62d1

Please sign in to comment.