Model_express.php 700 B

123456789101112131415161718192021222324252627
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_Express extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'express';
  8. $this->load_table('express');
  9. }
  10. /** 通过描述查找查找 */
  11. public function get_title($title)
  12. {
  13. return $this->find("title = '$title'");
  14. }
  15. public function get_servicename($servicename)
  16. {
  17. return $this->find("servicename = '$servicename'");
  18. }
  19. public function get_aecode($aecode)
  20. {
  21. return $this->find("aecode = '$aecode'");
  22. }
  23. public function get_cxcode($cxcode)
  24. {
  25. return $this->find("cxcode = '$cxcode'");
  26. }
  27. } //end class