Exemplo n.º 1
0
 public function AddFile(PluginReceptiondesk_ModuleTools_EntityFile $oFile)
 {
     if (!$oFile->getTargetTmp()) {
         return false;
     }
     $sql = "INSERT INTO " . Config::Get('db.table.receptiondesk_files') . " SET file_path=?,file_name=?,file_size=?,file_target_tmp=?;";
     if ($iFileId = $this->oDb->query($sql, $oFile->getPath(), $oFile->getName(), $oFile->getSize(), $oFile->getTargetTmp())) {
         return $iFileId;
     }
     return false;
 }