Your IP : 216.73.216.240


Current Path : /home/juvelize/www/modules/mod_featured_youtube_slider/
Upload File :
Current File : /home/juvelize/www/modules/mod_featured_youtube_slider/helper.php

<?php
/**
* Featured Youtube Slider - Joomla Module
* Version			: 2.3
* Created by		: RBO - http://www.rumahbelanja.com
* Created on		: Oct 2009 (Joomla 1.5.x), Dec 2010 (Joomla 1.6.x), Sept 30th, 2011 (For Joomla 1.7.x), August 27th, 2012 (For Joomla 2.5.x)
* Updated			: March 9th, 2013 (For Joomla 3.0.x)
* Package			: Joomla 3.0.x
* License			: http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
// no direct access
defined('_JEXEC') or die('Restricted access');

class modFeaturedYouTubeSliderHelper
{
	function getList(&$params)
	{
		global $mainframe;
		$db			=& JFactory::getDBO();
		
		$query = "SELECT * FROM #__modules WHERE module = 'mod_featured_youtube_slider' AND published = 1";

		$db->setQuery($query);
		$rows = $db->loadObjectList();


		$i		= 0;
		$lists	= array();
		foreach ( $rows as $row )
		{
			$lists[$i]->id = htmlspecialchars( $row->id );
			$i++;
		}

		return $lists;
	}
}