|
@@ 1030-1038 (lines=9) @@
|
| 1027 |
|
} |
| 1028 |
|
} |
| 1029 |
|
|
| 1030 |
|
public function setFromLocalFile($path, $filename = null, $hash = null, $variant = null, $config = array()) { |
| 1031 |
|
$result = $this->File->setFromLocalFile($path, $filename, $hash, $variant, $config); |
| 1032 |
|
|
| 1033 |
|
// Update File record to name of the uploaded asset |
| 1034 |
|
if($result) { |
| 1035 |
|
$this->setFilename($result['Filename']); |
| 1036 |
|
} |
| 1037 |
|
return $result; |
| 1038 |
|
} |
| 1039 |
|
|
| 1040 |
|
public function setFromStream($stream, $filename, $hash = null, $variant = null, $config = array()) { |
| 1041 |
|
$result = $this->File->setFromStream($stream, $filename, $hash, $variant, $config); |
|
@@ 1040-1048 (lines=9) @@
|
| 1037 |
|
return $result; |
| 1038 |
|
} |
| 1039 |
|
|
| 1040 |
|
public function setFromStream($stream, $filename, $hash = null, $variant = null, $config = array()) { |
| 1041 |
|
$result = $this->File->setFromStream($stream, $filename, $hash, $variant, $config); |
| 1042 |
|
|
| 1043 |
|
// Update File record to name of the uploaded asset |
| 1044 |
|
if($result) { |
| 1045 |
|
$this->setFilename($result['Filename']); |
| 1046 |
|
} |
| 1047 |
|
return $result; |
| 1048 |
|
} |
| 1049 |
|
|
| 1050 |
|
public function setFromString($data, $filename, $hash = null, $variant = null, $config = array()) { |
| 1051 |
|
$result = $this->File->setFromString($data, $filename, $hash, $variant, $config); |
|
@@ 1050-1058 (lines=9) @@
|
| 1047 |
|
return $result; |
| 1048 |
|
} |
| 1049 |
|
|
| 1050 |
|
public function setFromString($data, $filename, $hash = null, $variant = null, $config = array()) { |
| 1051 |
|
$result = $this->File->setFromString($data, $filename, $hash, $variant, $config); |
| 1052 |
|
|
| 1053 |
|
// Update File record to name of the uploaded asset |
| 1054 |
|
if($result) { |
| 1055 |
|
$this->setFilename($result['Filename']); |
| 1056 |
|
} |
| 1057 |
|
return $result; |
| 1058 |
|
} |
| 1059 |
|
|
| 1060 |
|
public function getIsImage() { |
| 1061 |
|
return false; |