CoreFiles by mySites.guru
helper.php45 lines, 878 bytes, from Joomla_3.3.5-Stable-Full_Package.zip
Raw History Compare with 3.3.4
md5
af5585d9f6133b602aece0570a5e48d3
sha1
132c80295e818475ee6ddb17da39fac9d98a52cd
sha256
82ecd3dcccb662ac2b15f6d717104afa46a9bc0f5adb900acdaaf65e123a8f4b
<?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
{
	/**
	 * Gets the link
	 * 
	 * @param   \Joomla\Registry\Registry  &$params  module parameters
	 * 
	 * @return  array  The link as a string
	 * 
	 * @since   1.5
	 */
	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 3 releases, Joomla 3.3.4 to 3.3.6. See them all, or every version of this file.