<?php
/**
 * NoNumber Framework Helper File: Assignments: Templates
 *
 * @package         NoNumber Framework
 * @version         14.9.6
 *
 * @author          Peter van Westen <peter@nonumber.nl>
 * @link            http://www.nonumber.nl
 * @copyright       Copyright © 2014 NoNumber All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

defined('_JEXEC') or die;

/**
 * Assignments: Templates
 */
class NNFrameworkAssignmentsTemplates
{
	function passTemplates(&$parent, &$params, $selection = array(), $assignment = 'all')
	{
		$template = JFactory::getApplication()->getTemplate();
		$template = JFactory::getApplication()->getTemplate($template);

		// Put template name and name + style id into array
		// The '::' separator was used in pre Joomla 3.3
		$template = array($template->template, $template->template . '--' . $template->id, $template->template . '::' . $template->id);

		return $parent->passSimple($template, $selection, $assignment, 1);
	}
}
