54 lines
1022 B
PHP
54 lines
1022 B
PHP
<?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',
|
|
];
|
|
}
|