CoreFiles by mySites.guru
helper.php36 lines, 709 bytes, from Joomla_3.3.0-Stable-Full_Package.zip
Raw History Compare with 3.2.7
md5
feeb7a0a7e408fd4eace1c03652b11fb
sha1
5b075275b0182ad855cdb1e8f895f4e1c0f17454
sha256
9b3e4d5e94b6b02ee3f5889e5517c050407fe8d6f36e43c68b3778480e120fd4
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_syndicate
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Helper for mod_syndicate
 *
 * @package     Joomla.Site
 * @subpackage  mod_syndicate
 * @since       1.5
 */
class ModSyndicateHelper
{
	public static function getLink(&$params)
	{
		$document = JFactory::getDocument();

		foreach ($document->_links as $link => $value)
		{
			$value = JArrayHelper::toString($value);

			if (strpos($value, 'application/' . $params->get('format') . '+xml'))
			{
				return $link;
			}
		}

	}
}

The same content is in 8 releases, Joomla 3.2.4 to 3.3.3. See them all, or every version of this file.