Source for file association.php
Documentation is available at association.php
* @subpackage com_content
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Content Component Association Helper
* @subpackage com_content
* Method to get the associations for a given item
* @param integer $id Id of the item
* @param string $view Name of the view
* @return array Array of associations for the item
jimport('helper.route', JPATH_COMPONENT_SITE);
$view =
is_null($view) ?
$jinput->get('view') :
$view;
$id =
empty($id) ?
$jinput->getInt('id') :
$id;
foreach ($associations as $tag =>
$item)
if ($view ==
'category' ||
$view ==
'categories')
return self::getCategoryAssociations($id, 'com_content');
Documentation generated on Tue, 19 Nov 2013 14:54:06 +0100 by phpDocumentor 1.4.3