File manager - Edit - /home/opticamezl/www/newok/weblinks.tar
Back
src/Extension/Weblinks.php 0000644 00000006254 15172151414 0011606 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Weblinks * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\System\Weblinks\Extension; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Database\DatabaseAwareTrait; use Joomla\Database\DatabaseInterface; use Joomla\Event\DispatcherInterface; use Joomla\Event\Event; use Joomla\Event\SubscriberInterface; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * System plugin for Joomla Web Links. * * @since __DEPLOY_VERSION__ */ final class Weblinks extends CMSPlugin implements SubscriberInterface { use DatabaseAwareTrait; /** * Load the language file on instantiation. * * @var boolean * @since __DEPLOY_VERSION__ */ protected $autoloadLanguage = true; /** * Supported Extensions * * @var array * @since __DEPLOY_VERSION__ */ private $supportedExtensions = [ 'mod_stats', 'mod_stats_admin', ]; /** * Constructor * * @param DispatcherInterface $dispatcher * @param array $config * @param DatabaseInterface $database */ public function __construct(DispatcherInterface $dispatcher, array $config, DatabaseInterface $database) { parent::__construct($dispatcher, $config); $this->setDatabase($database); } /** * Returns an array of CMS events this plugin will listen to and the respective handlers. * * @return array * * @since __DEPLOY_VERSION__ */ public static function getSubscribedEvents(): array { return [ 'onGetStats' => 'onGetStats', ]; } /** * Method to add statistics information to Administrator control panel. * * @param string $extension The extension requesting information. * * @return void * * @since __DEPLOY_VERSION__ */ public function onGetStats(Event $event) { if (!ComponentHelper::isEnabled('com_weblinks')) { return; } [$extension] = $event->getArguments(); if (!\in_array($extension, $this->supportedExtensions)) { return; } $db = $this->getDatabase(); $query = $db->getQuery(true) ->select('COUNT(id) AS count_links') ->from('#__weblinks') ->where('state = 1'); $webLinks = $db->setQuery($query)->loadResult(); if (!$webLinks) { return; } $result = $event->getArgument('result', []); $result[] = [ [ 'title' => Text::_('PLG_SYSTEM_WEBLINKS_STATISTICS'), 'icon' => 'out-2', 'data' => $webLinks, ], ]; $event->setArgument('result', $result); } } weblinks.xml 0000604 00000001512 15172151415 0007101 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <extension version="3.7" type="plugin" group="system" method="upgrade"> <name>plg_system_weblinks</name> <author>Joomla! Project</author> <creationDate>2025-04-02</creationDate> <copyright>(C) 2005 - 2025 Open Source Matters. All rights reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.4.0</version> <description>PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\System\Weblinks</namespace> <files> <folder>language</folder> <folder plugin="weblinks">services</folder> <folder>src</folder> <file>weblinks.xml</file> </files> <languages folder="language"> </languages> </extension> language/en-GB/plg_finder_weblinks.sys.ini 0000644 00000001023 15172151415 0014542 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_FINDER_STATISTICS_WEB_LINK="Web Link" PLG_FINDER_WEBLINKS="Smart Search - Web Links" PLG_FINDER_WEBLINKS_ERROR_ACTIVATING_PLUGIN="Could not automatically activate the "Smart Search - Web Links" plugin." PLG_FINDER_WEBLINKS_XML_DESCRIPTION="This plugin indexes Joomla! Web Links." language/en-GB/plg_finder_weblinks.ini 0000644 00000000726 15172151415 0013736 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_FINDER_WEBLINKS="Smart Search - Web Links" PLG_FINDER_WEBLINKS_XML_DESCRIPTION="This plugin indexes Joomla! Web Links." PLG_FINDER_QUERY_FILTER_BRANCH_P_WEB_LINK="Web links" PLG_FINDER_QUERY_FILTER_BRANCH_S_WEB_LINK="Web link" language/en-GB/en-GB.plg_finder_weblinks.sys.ini 0000604 00000001023 15172151415 0015425 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_FINDER_STATISTICS_WEB_LINK="Web Link" PLG_FINDER_WEBLINKS="Smart Search - Web Links" PLG_FINDER_WEBLINKS_ERROR_ACTIVATING_PLUGIN="Could not automatically activate the "Smart Search - Web Links" plugin." PLG_FINDER_WEBLINKS_XML_DESCRIPTION="This plugin indexes Joomla! Web Links." language/en-GB/en-GB.plg_finder_weblinks.ini 0000604 00000000726 15172151415 0014621 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_FINDER_WEBLINKS="Smart Search - Web Links" PLG_FINDER_WEBLINKS_XML_DESCRIPTION="This plugin indexes Joomla! Web Links." PLG_FINDER_QUERY_FILTER_BRANCH_P_WEB_LINK="Web links" PLG_FINDER_QUERY_FILTER_BRANCH_S_WEB_LINK="Web link" services/provider.php 0000644 00000002717 15172151415 0010743 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage System.weblinks * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseInterface; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\System\Weblinks\Extension\Weblinks; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since __DEPLOY_VERSION__ */ public function register(Container $container) { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $database = $container->get(DatabaseInterface::class); return new Weblinks( $dispatcher, (array) PluginHelper::getPlugin('system', 'weblinks'), $database ); } ); } }; language/en-GB/plg_search_weblinks.sys.ini 0000644 00000000544 15172151672 0014554 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SEARCH_WEBLINKS="Search - Web Links" PLG_SEARCH_WEBLINKS_XML_DESCRIPTION="Enables searching of Web Links Component." language/en-GB/en-GB.plg_search_weblinks.sys.ini 0000604 00000000544 15172151672 0015437 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SEARCH_WEBLINKS="Search - Web Links" PLG_SEARCH_WEBLINKS_XML_DESCRIPTION="Enables searching of Web Links Component." language/en-GB/en-GB.plg_search_weblinks.ini 0000604 00000001032 15172151672 0014613 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SEARCH_WEBLINKS="Search - Web Links" PLG_SEARCH_WEBLINKS_FIELD_SEARCHLIMIT_DESC="Number of search items to return." PLG_SEARCH_WEBLINKS_FIELD_SEARCHLIMIT_LABEL="Search Limit" PLG_SEARCH_WEBLINKS_WEBLINKS="Web Links" PLG_SEARCH_WEBLINKS_XML_DESCRIPTION="Enables searching of Web Links Component." language/en-GB/plg_search_weblinks.ini 0000644 00000001032 15172151672 0013730 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SEARCH_WEBLINKS="Search - Web Links" PLG_SEARCH_WEBLINKS_FIELD_SEARCHLIMIT_DESC="Number of search items to return." PLG_SEARCH_WEBLINKS_FIELD_SEARCHLIMIT_LABEL="Search Limit" PLG_SEARCH_WEBLINKS_WEBLINKS="Web Links" PLG_SEARCH_WEBLINKS_XML_DESCRIPTION="Enables searching of Web Links Component." language/en-GB/plg_system_weblinks.ini 0000644 00000000653 15172152055 0014013 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBLINKS="System - Web Links" PLG_SYSTEM_WEBLINKS_STATISTICS="Web Links" PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION="This plugin returns statistical information about Joomla! Web Links." language/en-GB/plg_system_weblinks.sys.ini 0000644 00000000577 15172152055 0014635 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBLINKS="System - Web Links" PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION="This plugin returns statistical information about Joomla! Web Links." language/en-GB/en-GB.plg_system_weblinks.ini 0000604 00000000653 15172152055 0014676 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBLINKS="System - Web Links" PLG_SYSTEM_WEBLINKS_STATISTICS="Web Links" PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION="This plugin returns statistical information about Joomla! Web Links." language/en-GB/en-GB.plg_system_weblinks.sys.ini 0000604 00000000577 15172152055 0015520 0 ustar 00 ; Joomla! Project ; Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBLINKS="System - Web Links" PLG_SYSTEM_WEBLINKS_XML_DESCRIPTION="This plugin returns statistical information about Joomla! Web Links."
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings