CoreFiles by mySites.guru
JsonapiView.php98 lines, 1,608 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
373ad874de2ca0428cd7ac104df6bb8b
sha1
0cc808b26d32d6cca166a734d9985393c9989214
sha256
4d0a4f018446b579eefbf6e267b12c6f97383f53471e69ccf02cf331c0c3c27d
<?php
/**
 * @package     Joomla.API
 * @subpackage  com_banners
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Banners\Api\View\Banners;

defined('_JEXEC') or die;

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

/**
 * The banners 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 = [
		'typeAlias',
		'id',
		'cid',
		'type',
		'name',
		'alias',
		'imptotal',
		'impmade',
		'clicks',
		'clickurl',
		'state',
		'catid',
		'description',
		'custombannercode',
		'sticky',
		'ordering',
		'metakey',
		'params',
		'own_prefix',
		'metakey_prefix',
		'purchase_type',
		'track_clicks',
		'track_impressions',
		'checked_out',
		'checked_out_time',
		'publish_up',
		'publish_down',
		'reset',
		'created',
		'language',
		'created_by',
		'created_by_alias',
		'modified',
		'modified_by',
		'version',
		'contenthistoryHelper',
	];

	/**
	 * The fields to render items in the documents
	 *
	 * @var  array
	 * @since  4.0.0
	 */
	protected $fieldsToRenderList = [
		'id',
		'name',
		'alias',
		'checked_out',
		'checked_out_time',
		'catid',
		'clicks',
		'metakey',
		'sticky',
		'impmade',
		'imptotal',
		'state',
		'ordering',
		'purchase_type',
		'language',
		'publish_up',
		'publish_down',
		'language_image',
		'editor',
		'category_title',
		'client_name',
		'client_purchase_type',
	];
}

No other release has this exact content. See every version of this file.