CoreFiles by mySites.guru
JsonapiView.php53 lines, 1,022 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
9f3d3d563ce2de4ce2043cec68f07618
sha1
377c1acad7f89896b315c1677a164c1792383c6e
sha256
8f9d0743fa8f14f8ae684f29422b0d7120c0840a1d9bc48381462dc2ef17942c
<?php

/**
 * @package     Joomla.API
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Users\Api\View\Groups;

use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * The groups view
 *
 * @since  4.0.0
 */
class JsonapiView extends BaseApiView
{
    /**
     * The fields to render item in the documents
     *
     * @var  array
     * @since  4.0.0
     */
    protected $fieldsToRenderItem = [
        'id',
        'parent_id',
        'lft',
        'rgt',
        'title',
    ];

    /**
     * The fields to render items in the documents
     *
     * @var  array
     * @since  4.0.0
     */
    protected $fieldsToRenderList = [
        'id',
        'parent_id',
        'lft',
        'rgt',
        'title',
    ];
}

The same content is in 224 releases, Joomla 4.2.1 to 6.2.0. See them all, or every version of this file.