[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.API 4 * @subpackage com_media 5 * 6 * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\Component\Media\Api\Controller; 11 12 \defined('_JEXEC') or die; 13 14 use Joomla\CMS\MVC\Controller\ApiController; 15 use Joomla\Component\Media\Administrator\Exception\InvalidPathException; 16 use Joomla\Component\Media\Administrator\Provider\ProviderManagerHelperTrait; 17 18 /** 19 * Media web service controller. 20 * 21 * @since 4.1.0 22 */ 23 class AdaptersController extends ApiController 24 { 25 use ProviderManagerHelperTrait; 26 27 /** 28 * The content type of the item. 29 * 30 * @var string 31 * @since 4.1.0 32 */ 33 protected $contentType = 'adapters'; 34 35 /** 36 * The default view for the display method. 37 * 38 * @var string 39 * 40 * @since 4.1.0 41 */ 42 protected $default_view = 'adapters'; 43 44 /** 45 * Display one specific adapter. 46 * 47 * @param string $path The path of the file to display. Leave empty if you want to retrieve data from the request. 48 * 49 * @return static A \JControllerLegacy object to support chaining. 50 * 51 * @throws InvalidPathException 52 * @throws \Exception 53 * 54 * @since 4.1.0 55 */ 56 public function displayItem($path = '') 57 { 58 // Set the id as the parent sets it as int 59 $this->modelState->set('id', $this->input->get('id', '', 'string')); 60 61 return parent::displayItem(); 62 } 63 }
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 |