[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/system/stats/src/Field/ -> AbstractStatsField.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Plugin
   5   * @subpackage  System.stats
   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  namespace Joomla\Plugin\System\Stats\Field;
  12  
  13  use Joomla\CMS\Factory;
  14  use Joomla\CMS\Form\FormField;
  15  
  16  // phpcs:disable PSR1.Files.SideEffects
  17  \defined('_JEXEC') or die;
  18  // phpcs:enable PSR1.Files.SideEffects
  19  
  20  /**
  21   * Base field for the Stats Plugin.
  22   *
  23   * @since  3.5
  24   */
  25  abstract class AbstractStatsField extends FormField
  26  {
  27      /**
  28       * Get the layouts paths
  29       *
  30       * @return  array
  31       *
  32       * @since   3.5
  33       */
  34      protected function getLayoutPaths()
  35      {
  36          $template = Factory::getApplication()->getTemplate();
  37  
  38          return array(
  39              JPATH_ADMINISTRATOR . '/templates/' . $template . '/html/layouts/plugins/system/stats',
  40              JPATH_PLUGINS . '/system/stats/layouts',
  41              JPATH_SITE . '/layouts',
  42          );
  43      }
  44  }


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