Model_whlabelbarcodeprint.php 582 B

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