b0y-101 Mini Shell


Current Path : E:/www/nongbua/administrator/components/com_advancedmodules/helpers/
File Upload :
Current File : E:/www/nongbua/administrator/components/com_advancedmodules/helpers/xml.php

<?php
/**
 * @package         Advanced Module Manager
 * @version         7.13.2
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            http://www.regularlabs.com
 * @copyright       Copyright © 2020 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

/**
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Installer\Installer as JInstaller;
use Joomla\CMS\Log\Log as JLog;

JLog::add('ModulesHelperXML is deprecated. Do not use.', JLog::WARNING, 'deprecated');

/**
 * Helper for parse XML module files
 * @deprecated  3.2  Do not use.
 */
class ModulesHelperXML
{
	/**
	 * Parse the module XML file
	 *
	 * @param array &$rows XML rows
	 *
	 * @return  void
	 *
	 * @deprecated  3.2  Do not use.
	 */
	public function parseXMLModuleFile(&$rows)
	{
		foreach ($rows as $i => $row)
		{
			if ($row->module == '')
			{
				$rows[$i]->name    = 'custom';
				$rows[$i]->module  = 'custom';
				$rows[$i]->descrip = 'Custom created module, using Module Manager New function';

				continue;
			}

			$data = JInstaller::parseXMLInstallFile($row->path . '/' . $row->file);

			if ($data['type'] != 'module')
			{
				continue;
			}

			$rows[$i]->name    = $data['name'];
			$rows[$i]->descrip = $data['description'];
		}
	}
}

Copyright © 2019 by b0y-101