CoreFiles by mySites.guru
JsonapiView.php54 lines, 936 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
f834da2d53eca78932ce0d8a3d605f71
sha1
8950034299ff3d982a55682cecee1600e13ecae8
sha256
52bf479baf1c38f8486951766a4ab581890c17469b8700ee39479bb492035071
<?php
/**
 * @package     Joomla.API
 * @subpackage  com_menus
 *
 * @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\Menus\Api\View\Menus;

\defined('_JEXEC') or die;

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

/**
 * The menus 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',
		'menutype',
		'title',
		'description',
		'client_id',
		'count_published',
		'count_unpublished',
		'count_trashed',
	];

	/**
	 * The fields to render items in the documents
	 *
	 * @var  array
	 * @since  4.0.0
	 */
	protected $fieldsToRenderList  = [
		'id',
		'asset_id',
		'menutype',
		'title',
		'description',
		'client_id',
	];
}

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.