Model_purchaseorder.php 402 B

123456789101112131415
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_purchaseorder extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'purchaseorder';
  8. $this->load_table('purchaseorder');
  9. }
  10. /** 通过API查找 */
  11. public function get_api($api)
  12. {
  13. return $this->find("api = '$api'");
  14. }
  15. } //end class