[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/src/Helper/ -> FinderHelper.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_finder
   6   *
   7   * @copyright   (C) 2011 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\Component\Finder\Administrator\Helper;
  12  
  13  use Joomla\CMS\Extension\ExtensionHelper;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('_JEXEC') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * Helper class for Finder.
  21   *
  22   * @since  2.5
  23   */
  24  class FinderHelper
  25  {
  26      /**
  27       * The extension name.
  28       *
  29       * @var    string
  30       * @since  2.5
  31       */
  32      public static $extension = 'com_finder';
  33  
  34      /**
  35       * Gets the finder system plugin extension id.
  36       *
  37       * @return  integer  The finder system plugin extension id.
  38       *
  39       * @since   3.6.0
  40       */
  41      public static function getFinderPluginId()
  42      {
  43          $pluginRecord = ExtensionHelper::getExtensionRecord('finder', 'plugin', null, 'content');
  44  
  45          return $pluginRecord !== null ? $pluginRecord->extension_id : 0;
  46      }
  47  }


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