acf
This commit is contained in:
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* @version CVS: 1.0.0
|
||||
* @package Com_Highlights
|
||||
* @author Eddy Prosperi <eddy.prosperi@protocollicreativi.it>
|
||||
* @copyright 2024 Eddy Prosperi
|
||||
* @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Pcrt\Component\Highlights\Administrator\Extension;
|
||||
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
use Pcrt\Component\Highlights\Administrator\Service\Html\HIGHLIGHTS;
|
||||
use Joomla\CMS\Application\SiteApplication;
|
||||
use Joomla\CMS\Association\AssociationServiceInterface;
|
||||
use Joomla\CMS\Association\AssociationServiceTrait;
|
||||
use Joomla\CMS\Categories\CategoryServiceTrait;
|
||||
use Joomla\CMS\Component\Router\RouterServiceInterface;
|
||||
use Joomla\CMS\Component\Router\RouterServiceTrait;
|
||||
use Joomla\CMS\Extension\BootableExtensionInterface;
|
||||
use Joomla\CMS\Extension\MVCComponent;
|
||||
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
|
||||
use Joomla\CMS\Tag\TagServiceTrait;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Joomla\CMS\Categories\CategoryServiceInterface;
|
||||
|
||||
/**
|
||||
* Component class for Highlights
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class HighlightsComponent extends MVCComponent implements RouterServiceInterface, BootableExtensionInterface, CategoryServiceInterface
|
||||
{
|
||||
use AssociationServiceTrait;
|
||||
use RouterServiceTrait;
|
||||
use HTMLRegistryAwareTrait;
|
||||
use CategoryServiceTrait, TagServiceTrait {
|
||||
CategoryServiceTrait::getTableNameForSection insteadof TagServiceTrait;
|
||||
CategoryServiceTrait::getStateColumnForSection insteadof TagServiceTrait;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
public function boot(ContainerInterface $container)
|
||||
{
|
||||
$db = $container->get('DatabaseDriver');
|
||||
$this->getRegistry()->register('highlights', new HIGHLIGHTS($db));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the table for the count items functions for the given section.
|
||||
*
|
||||
* @param string The section
|
||||
*
|
||||
* * @return string|null
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
protected function getTableNameForSection(string $section = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds Count Items for Category Manager.
|
||||
*
|
||||
* @param \stdClass[] $items The category objects
|
||||
* @param string $section The section
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public function countItems(array $items, string $section)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user