[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/api/components/com_tags/src/View/Tags/ -> JsonapiView.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.API
   5   * @subpackage  com_tags
   6   *
   7   * @copyright   (C) 2019 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\Tags\Api\View\Tags;
  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 tags 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          'level',
  36          'lft',
  37          'rgt',
  38          'alias',
  39          'typeAlias',
  40          'path',
  41          'title',
  42          'note',
  43          'description',
  44          'published',
  45          'checked_out',
  46          'checked_out_time',
  47          'access',
  48          'params',
  49          'metadesc',
  50          'metakey',
  51          'metadata',
  52          'created_user_id',
  53          'created_time',
  54          'created_by_alias',
  55          'modified_user_id',
  56          'modified_time',
  57          'images',
  58          'urls',
  59          'hits',
  60          'language',
  61          'version',
  62          'publish_up',
  63          'publish_down',
  64      ];
  65  
  66      /**
  67       * The fields to render items in the documents
  68       *
  69       * @var  array
  70       * @since  4.0.0
  71       */
  72      protected $fieldsToRenderList = [
  73          'id',
  74          'title',
  75          'alias',
  76          'note',
  77          'published',
  78          'access',
  79          'description',
  80          'checked_out',
  81          'checked_out_time',
  82          'created_user_id',
  83          'path',
  84          'parent_id',
  85          'level',
  86          'lft',
  87          'rgt',
  88          'language',
  89          'language_title',
  90          'language_image',
  91          'editor',
  92          'author_name',
  93          'access_title',
  94      ];
  95  }


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