[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/src/Form/Rule/ -> PrefixRule.php (source)

   1  <?php
   2  
   3  /**
   4   * @package    Joomla.Installation
   5   *
   6   * @copyright  (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
   7   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   8   */
   9  
  10  namespace Joomla\CMS\Installation\Form\Rule;
  11  
  12  use Joomla\CMS\Form\FormRule;
  13  
  14  // phpcs:disable PSR1.Files.SideEffects
  15  \defined('_JEXEC') or die;
  16  // phpcs:enable PSR1.Files.SideEffects
  17  
  18  /**
  19   * Form Rule class for the prefix DB.
  20   *
  21   * @since  1.7
  22   */
  23  class PrefixRule extends FormRule
  24  {
  25      /**
  26       * The regular expression to use in testing a form field value.
  27       *
  28       * @var    string
  29       * @since  1.7
  30       */
  31      protected $regex = '^[a-z][a-z0-9]*_$';
  32  
  33      /**
  34       * The regular expression modifiers to use when testing a form field value.
  35       *
  36       * @var    string
  37       * @since  1.7
  38       */
  39      protected $modifiers = 'i';
  40  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer