[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.API 5 * @subpackage com_installer 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\Installer\Api\View\Manage; 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 manage 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 $fieldsToRenderList = [ 33 'id', 34 'name', 35 'type', 36 'version', 37 'folder', 38 'status', 39 'client_id', 40 ]; 41 42 /** 43 * Prepare item before render. 44 * 45 * @param object $item The model item 46 * 47 * @return object 48 * 49 * @since 4.0.0 50 */ 51 protected function prepareItem($item) 52 { 53 $item->id = $item->extension_id; 54 unset($item->extension_id); 55 56 return $item; 57 } 58 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |