[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/modules/mod_syndicate/ -> helper.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: helper.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   6  * @license        GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  /** ensure this file is being included by a parent file */
  15  defined('_JEXEC') or die('Direct Access to this location is not allowed.');
  16  
  17  class modSyndicateHelper
  18  {
  19  	function getLink(&$params)
  20      {
  21          $document =& JFactory::getDocument();
  22  
  23          foreach($document->_links as $link)
  24          {
  25              if(strpos($link, 'application/'.$params->get('format').'+xml')) {
  26                  preg_match("#href=\"(.*?)\"#s", $link, $matches);
  27                  return $matches[1];
  28              }
  29          }
  30  
  31      }
  32  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1