12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_Country extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'country';
- $this->load_table('country');
- }
- /** 通过名查找查找 */
- public function get_name($name)
- {
- return $this->find("name = '$name'");
- }
- /** 通过英文名查找查找 */
- public function get_ename($ename)
- {
- return $this->find("ename = '$ename'");
- }
- /** 通过中文名查找 */
- public function get_zname($zname)
- {
- return $this->find("zname = '$zname'");
- }
- /** 通过所属州查找 */
- public function get_continent($continent)
- {
- return $this->find("continent = '$continent'");
- }
- /** 通过默认快递查找 */
- public function get_express($express)
- {
- return $this->find("express = '$express'");
- }
- /** 通过联邦编码查找 */
- public function get_al($lb)
- {
- return $this->find("lb = '$lb'");
- }
- } //end class
|