Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 27) sorted by relevance

12

/template/strap/ComboStrap/
H A DMime.php48 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 DFetcherVignette.php46 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 DFetcherMarkupBuilder.php30 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 DHttpResponse.php48 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 DMessage.php63 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 DFetcherSystem.php52 $mime = FileSystems::getMime($dokuPath);
55 $mime = new Mime(Mime::BINARY_MIME);
57 switch ($mime->toString()) {
61 if ($mime->isImage()) {
H A DMediaLink.php64 $mime = $mediaMarkup->getFetcher()->getMime();
65 switch ($mime->toString()) {
69 if (!$mime->isImage()) {
H A DIFetcherLocalImage.php24 $mime = FileSystems::getMime($path);
29 if (!$mime->isImage()) {
33 if ($mime->toString() === Mime::SVG) {
H A DThirdMediaLink.php68 $mime = FileSystems::getMime($path);
73 switch ($mime->toString()) {
H A DLocalFileSystem.php44 $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 DHttp.php73 public static function setMime(string $mime) argument
76 header("$contentTypeHeader: $mime");
H A DFileSystems.php245 $mime = mimetype($path->getLastName(), true)[1];
246 if ($mime === null || $mime === false) {
249 return new Mime($mime);
H A DRasterImageLink.php52 $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 DLdJson.php92 $mime = $pageImagePath->getMime()->toString();
96 $mime = "unknown";
98 if (in_array($mime, $supportedMime)) {
H A DTagAttributes.php259 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 DFetcherMarkup.php100 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 Dstaticresource.php141 $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 Dmetafacebook.php172 $mime = FileSystems::getMime($path);
177 if (!in_array($mime->toString(), $facebookMimes)) {
228 $facebookMeta["og:image:type"] = $mime->toString();
H A Ddocustom.php181 $mime = $fetcher->getMime();
184 ->setBody($body, $mime)
/template/strap/ComboStrap/Xml/
H A DXmlDocument.php249 $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 DFeaturedRasterImage.php63 $mime = FileSystems::getMime($wikiPath);
64 if (!$mime->isSupportedRasterImage()) {
/template/strap/syntax/
H A Dmedia.php102 $mime = $path->getMime();
108 if ($mime->isSupportedRasterImage()) {
114 if ($mime->toString() === Mime::SVG) {
/template/strap/ComboStrap/TagAttribute/
H A DBackgroundAttribute.php203 $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 DREADME.txt66 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 Dyarn.lock368 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"

12