PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/redirect/code/trunk/administrator/components/com_redirect/libraries/jxtended/form/rules/boolean.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 37 lines | 8 code | 4 blank | 25 comment | 0 complexity | 06549bb5d3c69173b3190a9d2913bd10 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: boolean.php 390 2010-11-05 11:35:33Z eddieajau $
  4. * @package JXtended.Libraries
  5. * @subpackage Form
  6. * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License
  8. * @link http://www.theartofjoomla.com
  9. */
  10. defined('JPATH_BASE') or die;
  11. juimport('jxtended.form.formrule');
  12. /**
  13. * Form Rule class for JXtended Libraries.
  14. *
  15. * @package JXtended.Libraries
  16. * @subpackage Form
  17. * @since 1.1
  18. */
  19. class JFormRuleBoolean extends JFormRule
  20. {
  21. /**
  22. * The regular expression.
  23. *
  24. * @var string
  25. */
  26. protected $_regex = '^0|1|true|false$';
  27. /**
  28. * The regular expression modifiers.
  29. *
  30. * @var string
  31. */
  32. protected $_modifiers = 'i';
  33. }