123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- Doo::loadCore('db/DooModel');
- /**
- * 用户表
- */
- class ChangeAtt extends DooModel {
- public $id;
- public $pid;
- public $stid;
- public $pmid;
- public $cid;
- public $uid;
- public $filename;
- public $fileext;
- public $filesize;
- public $filepath;
- public $intime;
- public $_table = 'jl_change_attachment';
- public $_primarykey = 'id';
- public $_fields = array('id', 'pid', 'stid', 'pmid', 'cid', 'uid', 'filename', 'fileext', 'filesize', 'filepath', 'intime');
- public function __construct() {
- parent::setupModel(__CLASS__);
- }
- public function delChangeAttbyFid($fid)
- {
- return $this->delete(array('where' => 'id=?', 'param' => array($fid), 'asArray' => TRUE));
- }
- }
- ?>
|