route element file uploads
Add short and long PDF paths to elements, keep pdfPath as a short PDF compatibility alias, and route generic file uploads by fileType.
This commit is contained in:
parent
0d5783ba9c
commit
9bbabc7fa6
28 changed files with 686 additions and 214 deletions
|
|
@ -12,7 +12,8 @@ class Element
|
|||
private string $description,
|
||||
private ?string $iconImageUrl,
|
||||
private string $richText,
|
||||
private ?string $pdfPath,
|
||||
private ?string $shortPdfPath,
|
||||
private ?string $longPdfPath,
|
||||
private ?string $youtubeUrl,
|
||||
private Set $set,
|
||||
private ?Element $parentElement,
|
||||
|
|
@ -64,14 +65,24 @@ class Element
|
|||
$this->richText = $richText;
|
||||
}
|
||||
|
||||
public function getPdfPath(): ?string
|
||||
public function getShortPdfPath(): ?string
|
||||
{
|
||||
return $this->pdfPath;
|
||||
return $this->shortPdfPath;
|
||||
}
|
||||
|
||||
public function setPdfPath(?string $pdfPath): void
|
||||
public function setShortPdfPath(?string $shortPdfPath): void
|
||||
{
|
||||
$this->pdfPath = $pdfPath;
|
||||
$this->shortPdfPath = $shortPdfPath;
|
||||
}
|
||||
|
||||
public function getLongPdfPath(): ?string
|
||||
{
|
||||
return $this->longPdfPath;
|
||||
}
|
||||
|
||||
public function setLongPdfPath(?string $longPdfPath): void
|
||||
{
|
||||
$this->longPdfPath = $longPdfPath;
|
||||
}
|
||||
|
||||
public function getYoutubeUrl(): ?string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue