[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/modules/mod_related_items/ -> mod_related_items.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  mod_related_items
   6   *
   7   * @copyright   (C) 2005 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  use Joomla\CMS\Helper\ModuleHelper;
  14  use Joomla\Module\RelatedItems\Site\Helper\RelatedItemsHelper;
  15  
  16  $cacheparams               = new \stdClass();
  17  $cacheparams->cachemode    = 'safeuri';
  18  $cacheparams->class        = RelatedItemsHelper::class;
  19  $cacheparams->method       = 'getList';
  20  $cacheparams->methodparams = $params;
  21  $cacheparams->modeparams   = array('id' => 'int', 'Itemid' => 'int');
  22  
  23  $list = ModuleHelper::moduleCache($module, $params, $cacheparams);
  24  
  25  if (!count($list)) {
  26      return;
  27  }
  28  
  29  $showDate = $params->get('showDate', 0);
  30  
  31  require ModuleHelper::getLayoutPath('mod_related_items', $params->get('layout', 'default'));


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