Home
last modified time | relevance | path

Searched refs:mime (Results 26 – 50 of 178) sorted by last modified time

12345678

/plugin/combo/ComboStrap/
H A DFetcherVignette.php46 private Mime $mime; variable in ComboStrap\\FetcherVignette
56 * @throws ExceptionBadArgument - if the mime is not supported or the path of the page is not a wiki path
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();
222 // no logo installed, mime not found, extension not supported
249 LogUtility::internalError("The possible mime error should have been caught in the setter");
278 * @throws ExceptionNotFound - unknown mime o
383 setMime(Mime $mime) global() argument
[all...]
H A DThirdMediaLink.php68 $mime = FileSystems::getMime($path);
73 switch ($mime->toString()) {
H A DMediaLink.php64 $mime = $mediaMarkup->getFetcher()->getMime();
65 switch ($mime->toString()) {
69 if (!$mime->isImage()) {
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 DFileSystems.php31 * @throws ExceptionNotFound - if the file does not exists or the mime is unknown
237 * @throws ExceptionNotFound - if the mime is unknown and was not found
245 $mime = mimetype($path->getLastName(), true)[1];
246 if ($mime === null || $mime === false) {
247 throw new ExceptionNotFound("No mime found for path ($path). The mime type of the media is <a href=\"https://www.dokuwiki.org/mime\">unknown (not in the configuration file)</a>");
249 return new Mime($mime);
H A DHttp.php73 public static function setMime(string $mime) argument
76 header("$contentTypeHeader: $mime");
H A DRasterImageLink.php47 * @throws ExceptionBadArgument - if the fetcher is not a raster mime and image fetcher
52 $mime = $fetcher->getMime();
53 if (!$mime->isSupportedRasterImage()) {
54 throw new ExceptionBadArgument("The mime value ($mime) is not a supported raster image.", self::CANONICAL);
H A DFetcherMarkup.php100 public Mime $mime; variable in ComboStrap\\FetcherMarkup
310 if (isset($this->mime)) {
311 return $this->mime;
319 throw new ExceptionRuntime("Internal error: The XHTML mime was not found.", self::CANONICAL, 1, $e);
637 if (!$this->isPathExecution() || $this->mime->getExtension() === MarkupRenderer::METADATA_EXTENSION) {
1353 * TODO: move to a FetcherMarkup by tree instruction and array/encoding mime
1428 * TODO: move to a FetcherMarkup by object type output and mime
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 DIFetcherLocalImage.php24 $mime = FileSystems::getMime($path);
26 throw new ExceptionBadArgument("The file ($path) has an unknown mime, we can't verify if we support it", FetcherImage::CANONICAL);
29 if (!$mime->isImage()) {
33 if ($mime->toString() === Mime::SVG) {
H A DTagAttributes.php259 private $mime = TagAttributes::TEXT_HTML_MIME; variable in ComboStrap\\TagAttributes
1084 * The mime of the HTTP request
1090 * @param $mime
1093 function setMime($mime) argument
1095 $this->mime = $mime;
1099 * @return string - the mime of the request
1104 return $this->mime;
/plugin/combo/ComboStrap/TagAttribute/
H A DBackgroundAttribute.php203 $mime = $imageFetcher->getMime();
204 if (!$mime->isImage()) {
205 LogUtility::error("The background image ($mediaMarkup) is not an image but a $mime", self::CANONICAL);
/plugin/combo/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);
/plugin/combo/action/
H A Ddocustom.php181 $mime = $fetcher->getMime();
184 ->setBody($body, $mime)
H A Dstaticresource.php112 $mime = $fetcher->getMime();
113 $event->data["mime"] = $mime->toString();
117 if ($mime->isImage() || in_array($mime->toString(), [Mime::JAVASCRIPT, Mime::CSS])) {
135 $event->data['mime'] = Mime::JSON;
283 $mime = FileSystems::getMime($mediaToSend);
294 if ($download && $mime->toString() !== "image/svg+xml") {
321 http_rangeRequest($filePointer, FileSystems::getSize($mediaToSend), $mime->toString());
/plugin/combo/syntax/
H A Dmedia.php102 $mime = $path->getMime();
104 LogUtility::internalError("The mime for the path ($path) was not found", self::CANONICAL, $e);
108 if ($mime->isSupportedRasterImage()) {
114 if ($mime->toString() === Mime::SVG) {
/plugin/combo/ComboStrap/Meta/Field/
H A DFeaturedRasterImage.php63 $mime = FileSystems::getMime($wikiPath);
64 if (!$mime->isSupportedRasterImage()) {
/plugin/combo/
H A Dyarn.lock86 mime-types "^2.1.12"
153 mime-db@1.52.0:
155 resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
158 mime-types@^2.1.12:
160 resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
163 mime-db "1.52.0"
/plugin/structodt/
H A Dhelper.php146 $mime = "application/$ext";
147 header("Content-Type: $mime");
156 http_rangeRequest($fp, filesize($tmp_file), $mime);
/plugin/statistics/inc/
H A DStatisticsLogger.class.php392 * @param string $mime the media's mime type
396 public function log_media($media, $mime, $inline, $size) { argument
405 list($mime1, $mime2) = explode('/', strtolower($mime));
/plugin/odt/ODT/
H A DODTImage.php31 list($ext,$mime) = mimetype($src);
33 $params->document->addFile($name, $mime, io_readfile($src,false));
110 $mime = '.image/svg+xml';
112 $doc->addFile($name, $mime, $string);
196 list($ext,$mime) = mimetype($src);
198 $params->document->addFile($name, $mime, io_readfile($src,false));
H A DODTmanifest.php60 * @param string $mime
62 function add($name, $mime) { argument
63 $this->manifest[$name] = $mime;
H A DODTDocument.php2097 * @param string $mime Mime type
2100 public function addFile($fileName, $mime, $content) { argument
2102 $this->manifest->add($fileName, $mime);
2122 list($ext,$mime) = mimetype($fileName);
2124 $this->addFile($name, $mime, io_readfile($fileName,false));
/plugin/odt/
H A Dexample.css14 * you need to edit DokuWiki's mime config file.
15 * See https://www.dokuwiki.org/mime for more information.
/plugin/odt/renderer/
H A Dpage.php1183 list(/* $ext */,$mime) = mimetype($src);
1198 if(substr($mime,0,5) == 'image'){
1237 list($ext,$mime) = mimetype($src);
1252 if(substr($mime,0,5) == 'image'){

12345678