Model_warehouse.php 543 B

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