changeatt.php 755 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. Doo::loadCore('db/DooModel');
  3. /**
  4. * 用户表
  5. */
  6. class ChangeAtt extends DooModel {
  7. public $id;
  8. public $pid;
  9. public $stid;
  10. public $pmid;
  11. public $cid;
  12. public $uid;
  13. public $filename;
  14. public $fileext;
  15. public $filesize;
  16. public $filepath;
  17. public $intime;
  18. public $_table = 'jl_change_attachment';
  19. public $_primarykey = 'id';
  20. public $_fields = array('id', 'pid', 'stid', 'pmid', 'cid', 'uid', 'filename', 'fileext', 'filesize', 'filepath', 'intime');
  21. public function __construct() {
  22. parent::setupModel(__CLASS__);
  23. }
  24. public function delChangeAttbyFid($fid)
  25. {
  26. return $this->delete(array('where' => 'id=?', 'param' => array($fid), 'asArray' => TRUE));
  27. }
  28. }
  29. ?>