芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/administrator/components/com_privacy/src/Service/HTML/Privacy.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Privacy\Administrator\Service\HTML; \defined('_JEXEC') or die; use Joomla\CMS\Language\Text; /** * Privacy component HTML helper. * * @since 3.9.0 */ class Privacy { /** * Render a status badge * * @param integer $status The item status * * @return string * * @since 3.9.0 */ public function statusLabel($status) { switch ($status) { case 2: return '
' . Text::_('COM_PRIVACY_STATUS_COMPLETED') . '
'; case 1: return '
' . Text::_('COM_PRIVACY_STATUS_CONFIRMED') . '
'; case -1: return '
' . Text::_('COM_PRIVACY_STATUS_INVALID') . '
'; default: case 0: return '
' . Text::_('COM_PRIVACY_STATUS_PENDING') . '
'; } } }