| /template/strap/ComboStrap/ |
| H A D | Mime.php | 48 private $mime; variable in ComboStrap\\Mime 53 public function __construct(string $mime) argument 55 if (trim($mime) === "") { 58 $this->mime = $mime; 61 public static function create(string $mime): Mime argument 63 return new Mime($mime); 173 return $this->mime; 182 return array_search($this->mime, self::$knownTypes) !== false; 191 if (in_array($this->mime, [self::SVG, self::JSON])) { 199 return explode("/", $this->mime)[0]; [all …]
|
| H A D | FetcherVignette.php | 46 private Mime $mime; variable in ComboStrap\\FetcherVignette 58 public static function createForPage(MarkupPath $page, Mime $mime = null): FetcherVignette argument 62 if ($mime === null) { 63 $mime = Mime::create(Mime::WEBP); 65 $fetcherVignette->setMime($mime); 77 $extension = $this->mime->getExtension(); 304 $vignetteNameValue = $this->pagePath->getWikiId() . "." . $this->mime->getExtension(); 319 return $this->mime; 383 public function setMime(Mime $mime): FetcherVignette argument 385 $this->mime = $mime; [all …]
|
| H A D | FetcherMarkupBuilder.php | 30 protected Mime $mime; variable in ComboStrap\\FetcherMarkupBuilder 159 public function setRequestedMime(Mime $mime): FetcherMarkupBuilder argument 161 $this->mime = $mime; 229 if (!isset($this->mime)) { 240 switch ($this->mime->toString()) { 290 $newFetcherMarkup->mime = $this->mime; 332 $extension = $this->mime->getExtension();
|
| H A D | HttpResponse.php | 48 private Mime $mime; variable in ComboStrap\\HttpResponse 102 $mime = Mime::create($contentTypeValue); 104 $mime = Mime::getBinary(); 108 ->setBody($response->getContent(), $mime) 134 if (isset($this->mime)) { 135 Http::setMime($this->mime->toString()); 258 function setBody(string $body, Mime $mime): HttpResponse argument 261 $this->mime = $mime;
|
| H A D | Message.php | 63 function addContent($message, $mime): Message argument 65 if (!isset($this->content[$mime])) { 66 $this->content[$mime] = []; 68 $this->content[$mime][] = $message; 103 function getContent($mime = null): string argument 105 if ($mime != null) { 106 return implode(DOKU_LF, $this->content[$mime]);
|
| H A D | FetcherSystem.php | 52 $mime = FileSystems::getMime($dokuPath); 55 $mime = new Mime(Mime::BINARY_MIME); 57 switch ($mime->toString()) { 61 if ($mime->isImage()) {
|
| H A D | MediaLink.php | 64 $mime = $mediaMarkup->getFetcher()->getMime(); 65 switch ($mime->toString()) { 69 if (!$mime->isImage()) {
|
| H A D | IFetcherLocalImage.php | 24 $mime = FileSystems::getMime($path); 29 if (!$mime->isImage()) { 33 if ($mime->toString() === Mime::SVG) {
|
| H A D | ThirdMediaLink.php | 68 $mime = FileSystems::getMime($path); 73 switch ($mime->toString()) {
|
| H A D | LocalFileSystem.php | 44 $mime = FileSystems::getMime($path); 45 if (!$mime->isTextBased()) { 46 …LogUtility::error("This mime content ($mime) is not text based (for the path $path). We can't retu…
|
| H A D | Http.php | 73 public static function setMime(string $mime) argument 76 header("$contentTypeHeader: $mime");
|
| H A D | FileSystems.php | 245 $mime = mimetype($path->getLastName(), true)[1]; 246 if ($mime === null || $mime === false) { 249 return new Mime($mime);
|
| H A D | RasterImageLink.php | 52 $mime = $fetcher->getMime(); 53 if (!$mime->isSupportedRasterImage()) { 54 …throw new ExceptionBadArgument("The mime value ($mime) is not a supported raster image.", self::CA…
|
| H A D | LdJson.php | 92 $mime = $pageImagePath->getMime()->toString(); 96 $mime = "unknown"; 98 if (in_array($mime, $supportedMime)) {
|
| H A D | TagAttributes.php | 259 private $mime = TagAttributes::TEXT_HTML_MIME; variable in ComboStrap\\TagAttributes 1093 function setMime($mime) argument 1095 $this->mime = $mime; 1104 return $this->mime;
|
| H A D | FetcherMarkup.php | 100 public Mime $mime; variable in ComboStrap\\FetcherMarkup 310 if (isset($this->mime)) { 311 return $this->mime; 637 …if (!$this->isPathExecution() || $this->mime->getExtension() === MarkupRenderer::METADATA_EXTENSIO…
|
| /template/strap/action/ |
| H A D | staticresource.php | 141 $mime = $fetcher->getMime(); 142 $event->data["mime"] = $mime->toString(); 146 if ($mime->isImage() || in_array($mime->toString(), [Mime::JAVASCRIPT, Mime::CSS])) { 312 $mime = FileSystems::getMime($mediaToSend); 323 if ($download && $mime->toString() !== "image/svg+xml") { 350 http_rangeRequest($filePointer, FileSystems::getSize($mediaToSend), $mime->toString());
|
| H A D | metafacebook.php | 172 $mime = FileSystems::getMime($path); 177 if (!in_array($mime->toString(), $facebookMimes)) { 228 $facebookMeta["og:image:type"] = $mime->toString();
|
| H A D | docustom.php | 181 $mime = $fetcher->getMime(); 184 ->setBody($body, $mime)
|
| /template/strap/ComboStrap/Xml/ |
| H A D | XmlDocument.php | 249 $mime = XmlDocument::XML_TYPE; 251 $mime = XmlDocument::HTML_TYPE; 254 return (new XmlDocument($content, $mime)); 265 $mime = XmlDocument::XML_TYPE; 267 $mime = XmlDocument::HTML_TYPE; 269 return new XmlDocument($string, $mime);
|
| /template/strap/ComboStrap/Meta/Field/ |
| H A D | FeaturedRasterImage.php | 63 $mime = FileSystems::getMime($wikiPath); 64 if (!$mime->isSupportedRasterImage()) {
|
| /template/strap/syntax/ |
| H A D | media.php | 102 $mime = $path->getMime(); 108 if ($mime->isSupportedRasterImage()) { 114 if ($mime->toString() === Mime::SVG) {
|
| /template/strap/ComboStrap/TagAttribute/ |
| H A D | BackgroundAttribute.php | 203 $mime = $imageFetcher->getMime(); 204 if (!$mime->isImage()) { 205 …Utility::error("The background image ($mediaMarkup) is not an image but a $mime", self::CANONICAL);
|
| /template/sprintdoc/fonts/icons/ |
| H A D | README.txt | 66 You MUST setup server to reply with proper `mime-types` for font files - 70 webservers should be tuned. Here is list of mime types for our file extensions:
|
| /template/strap/ |
| H A D | yarn.lock | 368 mime-types "^2.1.12" 552 mime-db@1.52.0: 554 resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" 557 mime-types@^2.1.12: 559 resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" 562 mime-db "1.52.0"
|