Source for file newsfeed.php
Documentation is available at newsfeed.php
* @package Joomla.Administrator
* @subpackage com_newsfeeds
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Utility class for creating HTML Grids
* @package Joomla.Administrator
* @subpackage com_newsfeeds
* Get the associated language flags
* @param int $newsfeedid The item id to search associations
* @return string The language HTML
foreach ($associations as $tag =>
$associated)
$associations[$tag] = (int)
$associated->id;
// Get the associated newsfeed items
$query =
$db->getQuery(true)
->select('c.id, c.name as title')
->select('l.sef as lang_sef')
->from('#__newsfeeds as c')
->select('cat.title as category_title')
->join('LEFT', '#__categories as cat ON cat.id=c.catid')
->join('LEFT', '#__languages as l ON c.language=l.lang_code')
->select('l.title as language_title');
$items =
$db->loadObjectList('id');
catch
(RuntimeException $e)
throw
new Exception($e->getMessage(), 500);
foreach ($items as &$item)
$url =
JRoute::_('index.php?option=com_newsfeeds&task=newsfeed.edit&id=' . (int)
$item->id);
JHtml::_('image', 'mod_languages/' .
$item->image .
'.gif',
array('title' =>
$item->language_title),
'(' .
$item->category_title .
')'
$item->link =
JHtml::_('tooltip', implode(' ', $tooltipParts), null, null, $text, $url, null, 'hasTooltip label label-association label-' .
$item->lang_sef);
Documentation generated on Tue, 19 Nov 2013 15:09:23 +0100 by phpDocumentor 1.4.3