芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.8/components/com_admin/src/Service/HTML/Directory.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Admin\Administrator\Service\HTML; \defined('_JEXEC') or die; use Joomla\CMS\Language\Text; /** * Utility class working with directory * * @since 1.6 */ class Directory { /** * Method to generate a (un)writable message for directory * * @param boolean $writable is the directory writable? * * @return string html code */ public function writable($writable) { if ($writable) { return '
' . Text::_('COM_ADMIN_WRITABLE') . '
'; } return '
' . Text::_('COM_ADMIN_UNWRITABLE') . '
'; } /** * Method to generate a message for a directory * * @param string $dir the directory * @param boolean $message the message * @param boolean $visible is the $dir visible? * * @return string html code */ public function message($dir, $message, $visible = true) { $output = $visible ? $dir : ''; if (empty($message)) { return $output; } return $output . '
' . Text::_($message) . '
'; } }