uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
consult-e-syn
/
public_html
/
643de
/
..
/
libraries
/
src
/
Toolbar
/
ToolbarButton.php
/
/
<?php /** * Joomla! Content Management System * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Toolbar; defined('JPATH_PLATFORM') or die; use Joomla\CMS\Layout\FileLayout; /** * Button base class * * The JButton is the base class for all JButton types * * @since 3.0 */ abstract class ToolbarButton { /** * element name * * This has to be set in the final renderer classes. * * @var string */ protected $_name = null; /** * reference to the object that instantiated the element * * @var \JButton */ protected $_parent = null; /** * Constructor * * @param object $parent The parent */ public function __construct($parent = null) { $this->_parent = $parent; } /** * Get the element name * * @return string type of the parameter * * @since 3.0 */ public function getName() { return $this->_name; } /** * Get the HTML to render the button * * @param array &$definition Parameters to be passed * * @return string * * @since 3.0 */ public function render(&$definition) { /* * Initialise some variables */ $id = call_user_func_array(array(&$this, 'fetchId'), $definition); $action = call_user_func_array(array(&$this, 'fetchButton'), $definition); // Build id attribute if ($id) { $id = ' id="' . $id . '"'; } // Build the HTML Button $options = array(); $options['id'] = $id; $options['action'] = $action; $layout = new FileLayout('joomla.toolbar.base'); return $layout->render($options); } /** * Method to get the CSS class name for an icon identifier * * Can be redefined in the final class * * @param string $identifier Icon identification string * * @return string CSS class name * * @since 3.0 */ public function fetchIconClass($identifier) { // It's an ugly hack, but this allows templates to define the icon classes for the toolbar $layout = new FileLayout('joomla.toolbar.iconclass'); return $layout->render(array('icon' => $identifier)); } /** * Get the button * * Defined in the final button class * * @return string * * @since 3.0 */ abstract public function fetchButton(); }
/var/www/consult-e-syn/public_html/643de/../libraries/src/Toolbar/ToolbarButton.php