[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/fields/integer/tmpl/ -> integer.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Plugin
   5   * @subpackage  Fields.Integer
   6   *
   7   * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  $value = $field->value;
  14  
  15  if ($value == '') {
  16      return;
  17  }
  18  
  19  if (is_array($value)) {
  20      $value = implode(', ', array_map('intval', $value));
  21  } else {
  22      $value = (int) $value;
  23  }
  24  
  25  echo $value;


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