| 
									
										
										
										
											2012-11-02 00:39:00 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  | 	Handles retrieving QSOs that have a Wacral (www.wacral.org) membership number stored in the comment field | 
					
						
							|  |  |  | 	eg WACRAL:1245 | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Wacral extends CI_Model { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	function __construct() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		parent::__construct(); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	function get_all() { | 
					
						
							| 
									
										
										
										
											2019-09-25 07:05:45 +08:00
										 |  |  | 		$CI =& get_instance(); | 
					
						
							|  |  |  |       	$CI->load->model('Stations'); | 
					
						
							|  |  |  |       	$station_id = $CI->Stations->find_active(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		$this->db->where("station_id", $station_id); | 
					
						
							| 
									
										
										
										
											2012-11-02 00:39:00 +08:00
										 |  |  | 		$this->db->order_by("COL_COMMENT", "ASC");  | 
					
						
							|  |  |  | 		$this->db->like('COL_COMMENT', 'WACRAL:'); | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		return $this->db->get($this->config->item('table_name')); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |