Lines Matching refs:this

112      * @var array of objects that are scoped to this request
156 * @var TemplateForWebPage - the page template fetcher running (when a fetcher creates a page, it would uses this fetcher)
166 $this->creationTime = Iso8601Date::createFromNow()->toIsoStringMs();
168 $this->url = Url::createFromGetOrPostGlobalVariable();
170 $this->response = HttpResponse::createFromExecutionContext($this);
176 $this->capturedAct = $ACT;
178 $urlAct = $this->url->getQueryPropertyValue(self::DO_ATTRIBUTE);
194 $this->capturedGlobalId = $ID;
197 $urlId = $this->url->getQueryPropertyValue(DokuwikiId::DOKUWIKI_ID_ATTRIBUTE);
202 * We don't use this data anyway, anymore ...
292 if (!isset($this->idManager)) {
293 $this->idManager = new IdManager($this);
295 return $this->idManager;
303 $requestedPath = $this->getContextPath();
334 * Check that this execution context was not closed
336 if (self::$actualExecutionContext->creationTime !== $this->creationTime) {
343 $this->getApp()->getConfig()->restoreConfigState();
351 * Execution context, change for now only this
355 $ACT = $this->getCapturedAct();
357 $ID = $this->getCapturedRunningId();
380 $this->closeExecutionVariables();
383 * Is this really needed ?
386 unset($this->executingMainFetcher);
387 unset($this->executingMarkupHandlerStack);
388 unset($this->cacheManager);
389 unset($this->idManager);
402 return $this->capturedGlobalId;
407 return $this->capturedAct;
414 $root->cacheManager = new CacheManager($this);
429 return $this->getExecutingPageTemplate()
439 return $this->getExecutingMarkupHandler()
497 return $this->getConfig()->getDefaultContextPath();
509 if (isset($this->executionScopedVariables[$objectIdentifier])) {
510 return $this->executionScopedVariables[$objectIdentifier];
517 $this->executionScopedVariables[$objectIdentifier] = &$object;
518 return $this;
523 return $this->url;
531 * @return $this
536 $this->getApp()->getConfig()->setConf($key, $value, $pluginNamespace);
537 return $this;
548 return $this->getApp()->getConfig()->getValue($key, $default);
553 $this->executionScopedVariables[$key] = $b;
554 return $this;
562 $var = $this->executionScopedVariables[$name] ?? null;
570 * @return $this
575 $this->getApp()->getConfig()->setCacheXhtmlOn();
576 return $this;
581 * @return $this
586 $this->getApp()->getConfig()->setCacheXhtmlOn();
587 return $this;
592 $this->getConfig()->setConsoleOff();
593 return $this;
597 * @return $this
602 $this->getApp()->getConfig()->setDisableThemeSystem();
603 return $this;
613 return $this->getApp()->getConfig()->isConsoleOn();
629 $this->getConfig()->setLogExceptionToError();
630 return $this;
649 $act = $this->getExecutingAction();
660 $this->setConf('maxseclevel', 999, null);
661 return $this;
666 * @return $this
671 $this->getConfig()->setCanonicalUrlType($value);
672 return $this;
678 $this->setConf('useheading', 1, null);
679 return $this;
684 return $this->response;
705 $this->setConf($key, $value, null);
706 return $this;
710 * @return bool - if this execution is a test running
731 return $this;
744 $this->executingMainFetcher = FetcherSystem::createFetcherStringFromUrl($fetchUrl);
745 return $this->executingMainFetcher;
758 $this->executingMainFetcher = FetcherSystem::createPathFetcherFromUrl($fetchUrl);
759 return $this->executingMainFetcher;
764 unset($this->executingMainFetcher);
768 $this->closeAndRemoveRuntimeVariableIfExists(Snippet::CANONICAL);
769 return $this;
774 * so that code may access it via this global variable
777 * @return $this
786 $oldAct = $this->getExecutingAction();
794 $this->setExecutingAction($runningAct);
801 $oldExecutingId = $this->getExecutingWikiId();
809 $this->setExecutingId($executingId);
817 * We just advertise if this is a fragment run
837 if (array_key_exists($id, $this->executingMarkupHandlerStack)) {
841 $this->executingMarkupHandlerStack[$id] = [$markupHandler, $oldExecutingId, $oldContextId, $oldAct];
842 return $this;
849 [$markupHandler, $oldExecutingId, $oldContextId, $oldAct] = array_pop($this->executingMarkupHandlerStack);
851 $this
862 return $this;
872 $count = count($this->executingMarkupHandlerStack);
874 return $this->executingMarkupHandlerStack[array_key_last($this->executingMarkupHandlerStack)][0];
885 return $this->getExecutingMarkupHandler()->getParent();
896 * @return $this
902 $this->getConfig()->setDefaultContextPath($contextPath);
903 return $this;
909 * Ie this is the equivalent of the current directory.
924 return $this
934 return $this->getExecutingPageTemplate()
962 return $this->getConfig()->getDefaultContextPath();
979 return $this->getConfig()->getDefaultContextPath();
989 if (isset($this->executingPageTemplate)) {
990 return $this->executingPageTemplate;
1000 * @return $this
1005 $this->executingPageTemplate = $pageTemplate;
1006 return $this;
1012 unset($this->executingPageTemplate);
1013 return $this;
1019 if (isset($this->app)) {
1020 return $this->app;
1022 $this->app = new Site($this);
1023 return $this->app;
1032 return $this->getApp()->getConfig();
1042 return $this->getExecutingMarkupHandler()
1047 return WikiPath::createMarkupPathFromId($this->getExecutingWikiId());
1070 return $this
1079 return MarkupPath::createPageFromPathObject($this->getContextPath())->getMetadataForRendering();
1095 if (!isset($this->executionScopedVariables[$globalObjectIdentifier])) {
1102 $object = &$this->executionScopedVariables[$globalObjectIdentifier];
1125 unset($this->executionScopedVariables[$globalObjectIdentifier]);
1135 $scopedVariables = array_keys($this->executionScopedVariables);
1137 $this->closeAndRemoveRuntimeVariableIfExists($executionScopedVariableKey);
1139 return $this;
1145 return $this->creationTime;
1152 $this->getExecutingPageTemplate();
1163 $this->getExecutingMarkupHandler();