| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Model_purchaseorder extends Lin_Model {	function __construct(){	parent::__construct();	$this->load->database();	$this->table = 'purchaseorder';    $this->load_table('purchaseorder');}	/** 通过API查找 */	public function get_api($api)	{		return  $this->find("api = '$api'");		}}  //end class
 |