| 1234567891011121314151617181920212223242526 | 
							- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 
- class Model_whlabelbarcode extends Lin_Model 
 
- {
 
- 	function __construct(){
 
- 	parent::__construct();
 
- 	$this->load->database();
 
- 	$this->table = 'whlabelbarcode';
 
-     $this->load_table('whlabelbarcode');
 
- }
 
- 	public function get_sku($sku)
 
- 	{
 
- 		return  $this->find("sku = '$sku'");	
 
- 	}
 
- 	public function get_number($number,$warehouse)
 
- 	{
 
- 		return  $this->find("number = '$number' and warehouse = '$warehouse'");	
 
- 	}
 
- 	public function get_title($title)
 
- 	{
 
- 		return  $this->find("title like '%$title%'");	
 
- 	}
 
- 	public function get_skulabel($sku,$label)
 
- 	{
 
- 		return  $this->find("sku = '$sku' and label = '$label'");	
 
- 	}
 
- }  //end class
 
 
  |