Lines Matching refs:this
78 $this->media = $media;
79 $this->fact_id = md5($gedcom);
82 $this->multimedia_file_refn = $match[1];
86 $this->multimedia_format = $match[1];
90 $this->source_media_type = $match[1];
94 $this->descriptive_title = $match[1];
105 return $this->multimedia_format;
115 return $this->source_media_type;
125 return $this->descriptive_title;
135 return $this->fact_id;
143 foreach ($this->media->facts() as $fact) {
144 if ($fact->id() === $this->fact_id) {
157 foreach ($this->media->facts() as $fact) {
158 if ($fact->id() === $this->fact_id) {
178 if ($this->isExternal()) {
179 $src = $this->multimedia_file_refn;
183 $src = $this->imageUrl($width, $height, $fit);
186 $srcset[] = $this->imageUrl($width * $x, $height * $x, $fit) . ' ' . $x . 'x';
190 if ($this->isImage()) {
195 'alt' => strip_tags($this->media->fullName()),
200 'type' => $this->mimeType(),
201 'href' => $this->downloadUrl('inline'),
202 'data-title' => strip_tags($this->media->fullName()),
205 $image = view('icons/mime', ['type' => $this->mimeType()]);
208 'type' => $this->mimeType(),
209 'href' => $this->downloadUrl('inline'),
221 return str_contains($this->multimedia_file_refn, '://');
245 'xref' => $this->media->xref(),
246 'tree' => $this->media->tree()->name(),
247 'fact_id' => $this->fact_id,
251 'mark' => Registry::imageFactory()->thumbnailNeedsWatermark($this, Auth::user())
254 $params['s'] = $this->signature($params);
264 return in_array($this->mimeType(), self::SUPPORTED_IMAGE_MIME_TYPES, true);
275 $extension = strtoupper(pathinfo($this->multimedia_file_refn, PATHINFO_EXTENSION));
291 'xref' => $this->media->xref(),
292 'tree' => $this->media->tree()->name(),
293 'fact_id' => $this->fact_id,
295 'mark' => Registry::imageFactory()->fileNeedsWatermark($this, Auth::user())
308 if (!$this->isExternal() || $this->fileExists()) {
310 $bytes = $this->media()->tree()->mediaFilesystem()->fileSize($this->filename());
320 $data = $this->media()->tree()->mediaFilesystem()->read($this->filename());
346 return $this->media->tree()->mediaFilesystem()->read($this->multimedia_file_refn);
360 return $this->media->tree()->mediaFilesystem()->fileExists($this->multimedia_file_refn);
371 return $this->media;
381 return $this->multimedia_file_refn;