Línea 429... |
Línea 429... |
429 |
* @throws \repository_nextcloud\configuration_exception
|
429 |
* @throws \repository_nextcloud\configuration_exception
|
430 |
* @throws \repository_nextcloud\request_exception
|
430 |
* @throws \repository_nextcloud\request_exception
|
431 |
* @throws coding_exception
|
431 |
* @throws coding_exception
|
432 |
* @throws moodle_exception
|
432 |
* @throws moodle_exception
|
433 |
*/
|
433 |
*/
|
434 |
public function send_file($storedfile, $lifetime=null , $filter=0, $forcedownload=false, array $options = null) {
|
434 |
public function send_file($storedfile, $lifetime=null , $filter=0, $forcedownload=false, ?array $options = null) {
|
435 |
$repositoryname = $this->get_name();
|
435 |
$repositoryname = $this->get_name();
|
436 |
$reference = json_decode($storedfile->get_reference());
|
436 |
$reference = json_decode($storedfile->get_reference());
|
Línea 437... |
Línea 437... |
437 |
|
437 |
|
438 |
// If the file is a reference which means its a public link in nextcloud.
|
438 |
// If the file is a reference which means its a public link in nextcloud.
|