Lines Matching defs:MediaMarkup
18 * - with a {@link MediaMarkup::getFetcher() fetcher}
19 * - and {@link MediaMarkup::getExtraMediaTagAttributes() tag/styling attributes}
22 * * via a {@link MediaMarkup::createFromRef() Markup Ref} (The string ref in the document)
23 * * via a {@link MediaMarkup::createFromFetcher() Fetcher}
24 * * via a {@link MediaMarkup::createFromFetchUrl() Fetch Url}
25 * * via a {@link MediaMarkup::createFromCallStackArray() callstack array} of {@link syntax_plugin_combo_media::render()}
26 * * via a {@link MediaMarkup::createFromMarkup() string match} of {@link syntax_plugin_combo_media::handle()}
30 class MediaMarkup
41 * * ie {@link MediaMarkup::EXTERNAL_MEDIA_CALL_NAME}
42 * or {@link MediaMarkup::INTERNAL_MEDIA_CALL_NAME}
117 * Private method use {@link MediaMarkup::createFromRef()} to create a media markup via a ref
122 * @return MediaMarkup
127 private function setMarkupRef(string $markupRef): MediaMarkup
141 * @return MediaMarkup
147 public static function createFromCallStackArray($callStackArray): MediaMarkup
153 $ref = $tagAttributes->getValueAndRemoveIfPresent(MediaMarkup::DOKUWIKI_SRC);
171 public static function createFromFetchUrl(Url $fetchUrl): MediaMarkup
173 return (new MediaMarkup())->setUrl($fetchUrl);
176 public static function createFromFetcher(IFetcher $fetcher): MediaMarkup
178 return (new MediaMarkup())
199 $mediaMarkup = MediaMarkup::createFromCallStackArray($callStackArray);
206 $mediaMarkup->getInternalExternalType() === MediaMarkup::INTERNAL_MEDIA_CALL_NAME
313 case MediaMarkup::INTERNAL_MEDIA_CALL_NAME:
315 case MediaMarkup::EXTERNAL_MEDIA_CALL_NAME:
334 case MediaMarkup::INTERNAL_MEDIA_CALL_NAME:
346 case MediaMarkup::EXTERNAL_MEDIA_CALL_NAME:
377 public static function createFromRef(string $markupRef): MediaMarkup
379 return (new MediaMarkup())->setMarkupRef($markupRef);
419 * @deprecated use {@link MediaMarkup::getFetcher()}->getUrl instead
434 public static function createFromMarkup(string $match): MediaMarkup
437 $mediaMarkup = new MediaMarkup();
479 public function setAlign(string $align): MediaMarkup
485 public function setLabel(string $label): MediaMarkup
498 * @return MediaMarkup
511 return (new MediaMarkup())
538 $attributes[MediaMarkup::LINKING_KEY] = $this->linking;
546 public function setLinking(string $linking): MediaMarkup
620 function setLazyLoadMethod($false): MediaMarkup
682 public function setLazyLoad(bool $true): MediaMarkup
718 public function buildFromTagAttributes(TagAttributes $tagAttributes): MediaMarkup
791 function setLinkingClass($value): MediaMarkup
818 * Private method use {@link MediaMarkup::createFromFetchUrl()} to create a media markup via a Url
822 private function setUrl(Url $fetchUrl): MediaMarkup
898 * Private method use {@link MediaMarkup::createFromFetcher()} to create a media markup via a Fetcher
900 * @return MediaMarkup
902 private function setFetcher(IFetcher $fetcher): MediaMarkup