[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_actionlogs 6 * 7 * @copyright (C) 2018 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\Actionlogs\Administrator\Field; 12 13 use Joomla\CMS\Form\FormField; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 use Joomla\CMS\Router\Route; 17 18 // phpcs:disable PSR1.Files.SideEffects 19 \defined('_JEXEC') or die; 20 // phpcs:enable PSR1.Files.SideEffects 21 22 /** 23 * Information field. 24 * 25 * @since 3.9.2 26 */ 27 class PlugininfoField extends FormField 28 { 29 /** 30 * The form field type. 31 * 32 * @var string 33 * @since 3.9.2 34 */ 35 protected $type = 'PluginInfo'; 36 37 /** 38 * Method to get the field input markup. 39 * 40 * @return string The field input markup. 41 * 42 * @since 3.9.2 43 */ 44 protected function getInput() 45 { 46 $db = $this->getDatabase(); 47 $query = $db->getQuery(true) 48 ->select($db->quoteName('extension_id')) 49 ->from($db->quoteName('#__extensions')) 50 ->where($db->quoteName('folder') . ' = ' . $db->quote('actionlog')) 51 ->where($db->quoteName('element') . ' = ' . $db->quote('joomla')); 52 $db->setQuery($query); 53 54 $result = (int) $db->loadResult(); 55 56 $link = HTMLHelper::_( 57 'link', 58 Route::_('index.php?option=com_plugins&task=plugin.edit&extension_id=' . $result), 59 Text::_('PLG_SYSTEM_ACTIONLOGS_JOOMLA_ACTIONLOG_DISABLED'), 60 array('class' => 'alert-link') 61 ); 62 63 return '<div class="alert alert-info">' 64 . '<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden">' 65 . Text::_('INFO') 66 . '</span>' 67 . Text::sprintf('PLG_SYSTEM_ACTIONLOGS_JOOMLA_ACTIONLOG_DISABLED_REDIRECT', $link) 68 . '</div>'; 69 } 70 }
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 |