12345678910111213141516171819202122 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_Warehouse extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'warehouse';
- $this->load_table('warehouse');
- }
- public function get_user($user)
- {
- return $this->find("user = '$user'");
- }
- public function get_title($title)
- {
- return $this->find("title = '$title'");
- }
- public function get_bdck($bdck)
- {
- return $this->find("bdck = '$bdck'");
- }
- } //end class
|