42 lines
835 B
PHP
42 lines
835 B
PHP
<?php
|
|
|
|
/**
|
|
* @package Joomla.API
|
|
* @subpackage com_banners
|
|
*
|
|
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
namespace Joomla\Component\Banners\Api\Controller;
|
|
|
|
use Joomla\CMS\MVC\Controller\ApiController;
|
|
|
|
// phpcs:disable PSR1.Files.SideEffects
|
|
\defined('_JEXEC') or die;
|
|
// phpcs:enable PSR1.Files.SideEffects
|
|
|
|
/**
|
|
* The banners controller
|
|
*
|
|
* @since 4.0.0
|
|
*/
|
|
class BannersController extends ApiController
|
|
{
|
|
/**
|
|
* The content type of the item.
|
|
*
|
|
* @var string
|
|
* @since 4.0.0
|
|
*/
|
|
protected $contentType = 'banners';
|
|
|
|
/**
|
|
* The default view for the display method.
|
|
*
|
|
* @var string
|
|
* @since 3.0
|
|
*/
|
|
protected $default_view = 'banners';
|
|
}
|