File: /home/awaldron/public_html/archive/ras/application/libraries/RasGallery.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class RasGallery
{
function __construct()
{
$this->ci =& get_instance();
$this->ci->load->database();
}
function get_gallery_data( $gal_ids = false ) {
$this->ci->db->select();
$this->ci->db->from("ras_gallery as A, ras_gallery_phogal as B, ras_gallery_photo as C");
$this->ci->db->where_in("A.gal_id", $gal_ids);
$this->ci->db->where("B.gal_id = A.gal_id");
$this->ci->db->where("B.order = 1");
$this->ci->db->where("B.photo_id = C.photo_id");
$this->ci->db->order_by("A.gal_id", "ASC");
$q = $this->ci->db->get();
$gdata = rset($q);
return $gdata;
}
}