tao.php 879 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The tao file of product module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author chen.tao<chentao@easycorp.ltd>
  8. * @package product
  9. * @link https://www.zentao.net
  10. */
  11. class fileTao extends fileModel
  12. {
  13. /**
  14. * 保存一条文件数据。
  15. * Save one file data.
  16. *
  17. * @param array $file
  18. * @param string $strSkipFields
  19. * @access protected
  20. * @return int
  21. */
  22. protected function saveFile($file, $strSkipFields = '')
  23. {
  24. if(empty($file)) return false;
  25. $this->dao->insert(TABLE_FILE)->data($file, $strSkipFields)->exec();
  26. return $this->dao->lastInsertID();
  27. }
  28. }