Changeset 874 for trunk/Common/Form/Types/File.php
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/File.php
r873 r874 16 16 $Result = $FileInfo->file($this->FileName); 17 17 //$FileInfo->close(); 18 return ($Result);18 return $Result; 19 19 } 20 20 … … 24 24 if (file_exists($FileName)) $Result = filesize($FileName); 25 25 else $Result = 0; 26 return ($Result);26 return $Result; 27 27 } 28 28 … … 38 38 } 39 39 $Result = $this->UploadFileFolder.'/'.$Path.$File->Name; 40 return ($Result);40 return $Result; 41 41 } 42 42 43 43 function GetExt() 44 44 { 45 return (substr($this->Name, 0, strpos($this->Name, '.') - 1));45 return substr($this->Name, 0, strpos($this->Name, '.') - 1); 46 46 } 47 47 … … 55 55 if ($this->TempName != '') $Content = file_get_contents($this->TempName); 56 56 else $Content = file_get_contents($this->GetFullName()); 57 return ($Content);57 return $Content; 58 58 } 59 59 } … … 75 75 { 76 76 $File = &$Item['Value']; 77 return ('<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'.78 $File.'</a> ('.HumanSize($File->Size).')' );77 return '<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'. 78 $File.'</a> ('.HumanSize($File->Size).')'; 79 79 } 80 80 … … 86 86 $File = &$Item['Value']; 87 87 $Output = '<input type="file" name="'.$Item['Name'].'" value="'.$File->Name.'">'; 88 return ($Output);88 return $Output; 89 89 } 90 90 … … 103 103 } 104 104 } 105 return ($File);105 return $File; 106 106 } 107 107 … … 118 118 $File->Directory = $DbRow['Directory']; 119 119 } 120 return ($File);120 return $File; 121 121 } 122 122
Note:
See TracChangeset
for help on using the changeset viewer.