Model_whlabeltransport.php 662 B

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