Added validation rules resolve gh-254. Removed empty sql files. Improved the field area.
This commit is contained in:
@ -26,22 +26,17 @@ defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
namespace Joomla\CMS\Form\Rule;
|
||||
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
use Joomla\CMS\Form\FormRule;
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
// import Joomla formrule library
|
||||
jimport('joomla.form.formrule');
|
||||
/**
|
||||
* Form Rule class for the Joomla Framework.
|
||||
* Form Rule (###Name###) class for the Joomla Platform.
|
||||
*/
|
||||
class JFormRule###Name### extends JFormRule
|
||||
{
|
||||
/**
|
||||
* The regular expression.
|
||||
*
|
||||
* @access protected
|
||||
* @var string
|
||||
* @since 2.5
|
||||
*/
|
||||
protected $regex = '^[^_]+$';
|
||||
class JFormRule###Name### extends FormRule
|
||||
{###VALIDATION_RULE_METHODS###
|
||||
}
|
||||
|
Reference in New Issue
Block a user