| } | ||
| + public function renderMedia( FileRenderer $renderer, string $url ): bool { | ||
| + return $renderer->renderMedia( $this, $url, $this->mediaType ); | ||
| + } | ||
| + | ||
| + public function renderSize( FileRenderer $renderer ): void { | ||
| + $renderer->renderSize( $this->size ); | ||
| + } | ||
| + | ||
| + public function highlight( FileRenderer $renderer, string $content ): string { | ||
| + return $renderer->highlight( $this->name, $content, $this->mediaType ); | ||
| + } | ||
| + | ||
| public function isImage(): bool { | ||
| return $this->category === self::CAT_IMAGE; |
| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-17 23:03:34 GMT-0800 |
| Commit | 808df1e08b1d35d8503b6499e268a411d45e14c4 |
| Parent | ef2ad77 |
| Delta | 12 lines added, 0 lines removed, 12-line increase |