1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- Doo::loadCore('db/DooModel');
- /**
- * 用户表
- */
- class ItemFiles extends DooModel {
- public $ifid;
- public $hashcode;
- public $pid;
- public $stid;
- public $mpid;
- public $pmid;
- public $numpname;
- public $times;
- public $auditoruid;
- public $filepath;
- public $isnew;
- public $intime;
- public $_table = 'jl_itemfiles';
- public $_primarykey = 'ifid';
- public $_fields = array('ifid', 'hashcode', 'pid', 'stid', 'mpid', 'pmid', 'numpname', 'times', 'auditoruid', 'filepath', 'isnew', 'intime');
- public function __construct() {
- parent::setupModel(__CLASS__);
- }
- public function createFile($pid, $stid, $mpid, $pmid, $numpname, $auditoruid, $filepath, $ziphashcode = 0, $filehashcode, $isnew, $times = 0) {
- $this->pid = $pid;
- $this->stid = $stid;
- $this->mpid = $mpid;
- $this->pmid = $pmid;
- $this->numpname = $numpname;
- if ($times > 0)
- $this->times = $times;
- $this->auditoruid = $auditoruid;
- $this->filepath = $filepath;
- if ($ziphashcode > 0)
- $this->ziphashcode = $ziphashcode;
- $this->filehashcode = $filehashcode;
- $this->isnew = $isnew;
- $this->intime = time();
- return $this->insert();
- }
- }
- ?>
|