Model_whlabelbarcode.php 721 B

1234567891011121314151617181920212223242526
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_whlabelbarcode extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'whlabelbarcode';
  8. $this->load_table('whlabelbarcode');
  9. }
  10. public function get_sku($sku)
  11. {
  12. return $this->find("sku = '$sku'");
  13. }
  14. public function get_number($number,$warehouse)
  15. {
  16. return $this->find("number = '$number' and warehouse = '$warehouse'");
  17. }
  18. public function get_title($title)
  19. {
  20. return $this->find("title like '%$title%'");
  21. }
  22. public function get_skulabel($sku,$label)
  23. {
  24. return $this->find("sku = '$sku' and label = '$label'");
  25. }
  26. } //end class