[ 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_postinstall 6 * 7 * @copyright (C) 2016 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\Postinstall\Administrator\Helper; 12 13 // phpcs:disable PSR1.Files.SideEffects 14 \defined('_JEXEC') or die; 15 // phpcs:enable PSR1.Files.SideEffects 16 17 /** 18 * Helper class for postinstall messages 19 * 20 * @since 3.6 21 */ 22 class PostinstallHelper 23 { 24 /** 25 * Method for parsing ini files. 26 * 27 * @param string $path Fancy path. 28 * 29 * @return string Parsed path. 30 * 31 * @since 3.6 32 */ 33 public function parsePath($path) 34 { 35 if (strpos($path, 'site://') !== false) { 36 $path = JPATH_ROOT . str_replace('site://', '/', $path); 37 } elseif (strpos($path, 'admin://') !== false) { 38 $path = JPATH_ADMINISTRATOR . str_replace('admin://', '/', $path); 39 } 40 41 return $path; 42 } 43 }
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 |