[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2021 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\Form\Rule; 11 12 use Joomla\CMS\Form\FormRule; 13 14 // phpcs:disable PSR1.Files.SideEffects 15 \defined('JPATH_PLATFORM') or die; 16 // phpcs:enable PSR1.Files.SideEffects 17 18 /** 19 * Form Rule class for the Joomla Platform. 20 * 21 * @since 3.9.26 22 */ 23 class ModuleLayoutRule extends FormRule 24 { 25 /** 26 * The regular expression to use in testing a module layout field value. 27 * 28 * A valid module layout field value consists of 29 * - optionally a template name with only characters, numbers, hyphens and 30 * underscores, which can also be just "_" for layouts provided by the 31 * module, followed by a colon. 32 * - the base name of the layout file, not starting with a dot and with 33 * only characters, numbers, dots and hyphens but no underscores (see 34 * method "getInput" of the "ModuleLayout" field). 35 * 36 * @var string 37 * @since 3.9.26 38 */ 39 protected $regex = '^([A-Za-z0-9_-]+:)?[A-Za-z0-9-][A-Za-z0-9\.-]*$'; 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |