cloud_bbb/lib/BigBlueButton/Presentation.php

27 lines
493 B
PHP
Raw Normal View History

2020-05-16 17:14:17 +02:00
<?php
namespace OCA\BigBlueButton\BigBlueButton;
class Presentation {
2020-05-16 17:14:17 +02:00
private $url;
private $filename;
public function __construct(string $url, string $filename) {
2020-05-16 17:14:17 +02:00
$this->url = $url;
2022-10-26 19:16:51 +02:00
$this->filename = preg_replace('/[^\x20-\x7E]+/', '#', $filename);
2020-05-16 17:14:17 +02:00
}
public function getUrl(): string {
2020-05-16 17:14:17 +02:00
return $this->url;
}
public function getFilename(): string {
2020-05-16 17:14:17 +02:00
return $this->filename;
}
public function isValid(): bool {
2020-05-16 17:14:17 +02:00
return !empty($this->url) && !empty($this->filename);
}
}