[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/api/components/com_users/src/View/Groups/ -> JsonapiView.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.API
   5   * @subpackage  com_users
   6   *
   7   * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\Component\Users\Api\View\Groups;
  12  
  13  use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('_JEXEC') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * The groups view
  21   *
  22   * @since  4.0.0
  23   */
  24  class JsonapiView extends BaseApiView
  25  {
  26      /**
  27       * The fields to render item in the documents
  28       *
  29       * @var  array
  30       * @since  4.0.0
  31       */
  32      protected $fieldsToRenderItem = [
  33          'id',
  34          'parent_id',
  35          'lft',
  36          'rgt',
  37          'title',
  38      ];
  39  
  40      /**
  41       * The fields to render items in the documents
  42       *
  43       * @var  array
  44       * @since  4.0.0
  45       */
  46      protected $fieldsToRenderList = [
  47          'id',
  48          'parent_id',
  49          'lft',
  50          'rgt',
  51          'title',
  52      ];
  53  }


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