Model_whlabel_bh.php 562 B

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