[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_content/src/Model/ -> FeatureModel.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_content
   6   *
   7   * @copyright   (C) 2010 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\Content\Administrator\Model;
  12  
  13  // phpcs:disable PSR1.Files.SideEffects
  14  \defined('_JEXEC') or die;
  15  // phpcs:enable PSR1.Files.SideEffects
  16  
  17  /**
  18   * Feature model.
  19   *
  20   * @since  1.6
  21   */
  22  class FeatureModel extends ArticleModel
  23  {
  24      /**
  25       * Returns a Table object, always creating it.
  26       *
  27       * @param   string  $type    The table type to instantiate
  28       * @param   string  $prefix  A prefix for the table class name. Optional.
  29       * @param   array   $config  Configuration array for model. Optional.
  30       *
  31       * @return  \Joomla\CMS\Table\Table A database object
  32       *
  33       * @since   1.6
  34       */
  35      public function getTable($type = 'Featured', $prefix = 'Administrator', $config = array())
  36      {
  37          return parent::getTable($type, $prefix, $config);
  38      }
  39  
  40      /**
  41       * A protected method to get a set of ordering conditions.
  42       *
  43       * @param   object  $table  A record object.
  44       *
  45       * @return  array  An array of conditions to add to ordering queries.
  46       *
  47       * @since   1.6
  48       */
  49      protected function getReorderConditions($table)
  50      {
  51          return [];
  52      }
  53  }


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