CoreFiles by mySites.guru
xml.php40 lines, 891 bytes, from Joomla_2.5.4-Stable-Full_Package.zip
Raw History Compare with 2.5.3
md5
7c8def351649626191b5a934983961de
sha1
e557774d6ae7ddb60d559babf0371c2c047e6129
sha256
de881ce686953abd261ac2d3807763a7a2ed5a6764d8b9a447f9f79f996cbd1f
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	com_modules
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

/**
 * @package		Joomla.Administrator
 * @subpackage	com_modules
 */
class ModulesHelperXML
{
	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';
			}
			else
			{
				$data = JApplicationHelper::parseXMLInstallFile($row->path . '/' . $row->file);

				if ($data['type'] == 'module')
				{
					$rows[$i]->name		= $data['name'];
					$rows[$i]->descrip	= $data['description'];
				}
			}
		}
	}
}

The same content is in 5 releases, Joomla 2.5.0 to 2.5.4. See them all, or every version of this file.