ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 34,524
- Points
- 823
Reputation:
PHP:
Read more
Continue reading...
Code:
/**
* @param string $key
* @param bool $multiple If true, returns an array of uploads for this key
* @param bool $skipErrors If true, uploads with errors will not be returned
*
* @return Upload|Upload[]
*/
public function getFile($key, $multiple = false, $skipErrors = true)
{
if (!$this->fileExists($key))
{
return ($multiple ? [] : null);
}
[...]
$output = [];
[...]
if ($multiple)
{
return $output;
}
else
{...
Read more
Continue reading...