/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
administrator/components/com_content/src/Model/FeatureModel.php
53 строки
1 KB
Allon Moritz
Changes the code base to short array syntax (#39616)
14 янв 2023, 12:54
Не верифицирован
14 янв 2023, 12:54
10f250f
Код
Авторство
О чём код?
<?php /** * @package Joomla.Administrator * @subpackage com_content * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Content\Administrator\Model; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Feature model. * * @since 1.6 */ class FeatureModel extends ArticleModel { /** * Returns a Table object, always creating it. * * @param string $type The table type to instantiate * @param string $prefix A prefix for the table class name. Optional. * @param array $config Configuration array for model. Optional. * * @return \Joomla\CMS\Table\Table A database object * * @since 1.6 */ public function getTable($type = 'Featured', $prefix = 'Administrator', $config = []) { return parent::getTable($type, $prefix, $config); } /** * A protected method to get a set of ordering conditions. * * @param object $table A record object. * * @return array An array of conditions to add to ordering queries. * * @since 1.6 */ protected function getReorderConditions($table) { return []; } }