Lines Matching refs:this

95         $this->builderMarkupString = $markupString;
96 return $this;
103 * @return $this
107 $this->deleteRootBlockElement = $b;
108 return $this;
115 * @return $this
121 return $this;
134 $this->builderMarkupSourcePath = $executingPath->toWikiPath();
136 $this->builderMarkupSourcePath = $executingPath;
138 return $this;
143 * The page context in which this fragment was requested
149 * @return $this
153 $this->requestedContextPath = $contextPath;
154 return $this;
161 $this->mime = $mime;
162 return $this;
168 return $this->setRequestedMime(Mime::createFromExtension("xhtml"));
180 * @return $this
185 $this->setRequestedMime(Mime::createFromExtension(MarkupRenderer::INSTRUCTION_EXTENSION));
189 return $this;
203 if ($this->builderMarkupSourcePath === null && $this->builderMarkupString === null && $this->builderRequestedInstructions === null) {
210 if ($this->builderMarkupSourcePath !== null) {
213 if ($this->builderMarkupString !== null) {
220 if ($this->builderRequestedInstructions !== null) {
229 if (!isset($this->mime)) {
232 if (!isset($this->requestedContextPath)) {
239 if (!isset($this->rendererName)) {
240 switch ($this->mime->toString()) {
263 $rendererName = $this->rendererName;
272 $newFetcherMarkup->requestedContextPath = $this->requestedContextPath;
273 if ($this->builderMarkupString !== null) {
274 $newFetcherMarkup->markupString = $this->builderMarkupString;
276 if ($this->builderMarkupSourcePath !== null) {
277 $newFetcherMarkup->markupSourcePath = $this->builderMarkupSourcePath;
278 if (!FileSystems::exists($this->builderMarkupSourcePath)) {
284 throw new ExceptionNotExists("The executing source file ({$this->builderMarkupSourcePath}) does not exist");
287 if ($this->builderRequestedInstructions !== null) {
288 $newFetcherMarkup->requestedInstructions = $this->builderRequestedInstructions;
290 $newFetcherMarkup->mime = $this->mime;
291 $newFetcherMarkup->deleteRootBlockElement = $this->deleteRootBlockElement;
294 $newFetcherMarkup->isDoc = $this->getIsDocumentExecution();
295 if (isset($this->builderContextData)) {
296 $newFetcherMarkup->contextData = $this->builderContextData;
299 if (isset($this->parentMarkupHandler)) {
300 $newFetcherMarkup->parentMarkupHandler = $this->parentMarkupHandler;
302 $newFetcherMarkup->isNonPathStandaloneExecution = $this->isCodeStandAloneExecution;
319 if ($this->builderMarkupSourcePath !== null) {
322 list($wikiId, $localFile) = self::getWikiIdAndLocalFileDokuwikiCompliant($this->builderMarkupSourcePath);
332 $extension = $this->mime->getExtension();
365 return $this->setRequestedMime(Mime::createFromExtension(MarkupRenderer::METADATA_EXTENSION));
373 $this->rendererName = $rendererName;
374 return $this;
382 $this->requestedContextPath = $executionContext
387 $this->requestedContextPath = $executionContext->getConfig()->getDefaultContextPath();
389 return $this;
394 * @return $this
402 $this->isDoc = $isDoc;
403 return $this;
412 $this->builderRequestedInstructions = $instructions;
413 return $this;
418 * @return $this
423 return $this;
425 $this->builderContextData = $contextData;
426 return $this;
431 * @return $this
434 * To avoid this problem, a warning is send if the calling code does not set explicitly that this is specifically a
439 $this->isCodeStandAloneExecution = $isStandAlone;
440 return $this;
449 * @return bool true if this is a document execution
454 if (isset($this->isDoc)) {
455 return $this->isDoc;
460 * (in test, this is almost always the case)
462 if ($this->builderMarkupString !== null) {
468 * (in test and rendering, this is almost always the case)
470 if ($this->builderRequestedInstructions !== null) {
481 $executingWikiPath = $this->builderMarkupSourcePath->toWikiPath();
489 * * the same, this is a document run
490 * * not the same, this is a fragment run
492 if ($this->requestedContextPath->toUriString() !== $executingWikiPath->toUriString()) {
506 $this->parentMarkupHandler = $parentMarkupHandler;
507 return $this;