1234567891011121314151617181920212223242526272829303132333435 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_Purchasedetailed extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'purchasedetailed';
- $this->load_table('purchasedetailed');
- }
- /** 通过类目查找 */
- public function get_category($category)
- {
- return $this->find("category = '$category'");
- }
- /** 通过尺寸查找 */
- public function get_size($size)
- {
- return $this->find("size = '$size'");
- }
- /** 通过等级查找 */
- public function get_grade($grade)
- {
- return $this->find("grade = '$grade'");
- }
- /** 通过花型查找 */
- public function get_lowe($lowe)
- {
- return $this->find("lowe = '$lowe'");
- }
- /** 通过颜色查找 */
- public function get_color($color)
- {
- return $this->find("color = '$color'");
- }
- } //end class
|