<?php
/**
* @Copyright Copyright (C) 2012- xml/swf
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );

class GalleryModelGalpic extends JModel
{
    function getData($cat_id)
    {
		$query = 'Select * FROM #__gallerycatpro WHERE catid = ' . $cat_id . ' AND publish = 1 ORDER BY ordnum';
		$this->_db->setQuery($query);
		$data = $this->_db->loadObjectList();
		return $data;
    }
	function getItems($q_ids)
    {
		$query = 'Select * FROM #__gallerycatpro WHERE id = ' . $q_ids;
		$this->_db->setQuery($query);
		$data = $this->_db->loadObjectList();
		return $data;
    }
}
