Lines Matching refs:this

6  * COPYING  file in the root directory of this source tree.
39 * has only data and no class, for now, we create this
40 * lists manually because this is a hassle to retrieve this information from {@link \DokuWiki_Syntax_Plugin::getType()}
163 $this->call = &$call;
164 $this->key = $key;
257 * For a plugin, this is equivalent
269 $mode = $this->call[0];
275 $dokuWikiNodeName = $this->call[0];
279 * We delete this is not in the doc and therefore not logical
288 $pluginDokuData = $this->call[1];
318 LogUtility::msg("The call (" . print_r($this->call, true) . ") has an array and not a string as component (" . print_r($component, true) . "). Page: " . MarkupPath::createFromRequestedPage(), LogUtility::LVL_MSG_ERROR);
333 $mode = $this->call[0];
337 * There is no state because this is a standard
339 * check if this is not a `...._close` or `...._open`
342 $mode = $this->call[0];
361 $returnedArray = $this->call[1];
377 $data = &$this->call[1][1];
391 $caller = $this->call[0];
394 return $this->call[1][3];
396 return '[[' . $this->call[1][0] . '|' . $this->call[1][1] . ']]';
401 return $this->call[1][0];
403 if (isset($this->call[1][0]) && is_string($this->call[1][0])) {
404 return $this->call[1][0];
419 $isPluginCall = $this->isPluginCall();
421 return $this->call[1];
424 $data = &$this->getPluginData();
426 LogUtility::error("The handle data is not an array for the call ($this), correct the returned data from the handle syntax plugin function", self::CANONICAL);
437 $message = "The attributes value are not an array for the call ($this), the value was wrapped in an array";
448 $data = &$this->getPluginData();
458 if ($this->call[0] == "plugin") {
459 $match = $this->call[1][3];
461 $this->call[0] = "plugin";
464 $this->call[1] = array(
488 return isset($this->call[1][1][PluginUtility::DISPLAY]);
498 $mode = $this->getMode();
500 if ($this->isDisplaySet()) {
501 return $this->call[1][1][PluginUtility::DISPLAY];
505 if ($this->getState() == DOKU_LEXER_UNMATCHED) {
512 $mode = $this->call[0];
515 $component = $this->getComponentName();
572 $mode = $this->call[0];
574 $pluginDokuData = $this->call[1];
584 $mode = $this->call[0];
588 $this->call[0] = "cdata";
589 $this->call[1] = array(
599 $mode = $this->call[0];
601 $this->call[1][1][PluginUtility::ATTRIBUTES][$key] = $value;
603 return $this->call[1][1][PluginUtility::ATTRIBUTES][$key];
614 $mode = $this->call[0];
616 return $this->call[1][1][PluginUtility::CONTEXT] ?? null;
630 return $this->call;
636 $name = $this->key;
640 $name .= $this->getTagName();
641 $name .= " - {$this->getStateName()}";
656 if ($this->getState() == DOKU_LEXER_UNMATCHED) {
659 return $this->getAttribute(TagAttributes::TYPE_KEY);
671 $attributes = &$this->getAttributes();
682 $mode = $this->call[0];
684 return $this->call[1][1][PluginUtility::PAYLOAD];
694 $this->call[1][1][PluginUtility::CONTEXT] = $value;
695 return $this;
701 $attributes = $this->getAttributes();
705 if ($this->getType() == $attributeName) {
716 return $this->call[0] === "plugin";
725 return $this->key;
731 return $this->call;
737 if ($this->call[0] == "plugin") {
739 $this->call[1][2] = $state;
741 if (isset($this->call[1][1][PluginUtility::STATE])) {
742 $this->call[1][1][PluginUtility::STATE] = $state;
758 return $this->call[2];
773 $captureContent = $this->getCapturedContent();
778 return $this->getFirstMatchedCharacterPosition() + $length;
788 $class = $this->getAttribute("class");
792 $this->addAttribute("class", $value);
793 return $this;
805 $data = &$this->getPluginData();
812 if ($this->getType() == $key) {
824 if ($this->isPluginCall()) {
825 $this->call[1][1][PluginUtility::PAYLOAD] = $text;
827 LogUtility::msg("Setting the payload for a non-native call ($this) is not yet implemented");
838 $this->getState() == DOKU_LEXER_UNMATCHED ||
839 $this->getTagName() == "cdata" ||
840 $this->getTagName() == "acronym"
847 if ($this->isPluginCall()) {
848 $this->call[1][1][PluginUtility::ATTRIBUTES][TagAttributes::TYPE_KEY] = $type;
850 LogUtility::msg("This is not a plugin call ($this), you can't set the type");
857 $style = $this->getAttribute("style");
862 $this->addAttribute("style", $cssValue);
869 if ($this->isPluginCall()) {
870 $this->call[1][0] = PluginUtility::getComponentName($tag);
872 LogUtility::msg("The call ($this) is a native call and we don't support yet the modification of the component to ($tag)");
880 $tagName = $this->getTagName();
883 $this->call[1][0] = $content;
897 $mode = $this->getMode();
899 $this->call[1][1][PluginUtility::DISPLAY] = $display;
903 return $this;
914 return $this->call[0];
918 * Return if this an unmatched call with space
925 if ($this->getState() === DOKU_LEXER_UNMATCHED && trim($this->getCapturedContent()) === "") {
934 $mode = $this->call[0];
936 $value = $this->call[1][1][PluginUtility::EXIT_CODE] ?? null;
950 $this->getAttributes()[$name] = $value;
951 return $this;
957 $this->getPluginData()[$name] = $value;
958 return $this;
964 $id = $this->getAttribute(TagAttributes::ID_KEY);
968 return $this->getAttribute(TagAttributes::GENERATED_ID_KEY);
974 $value = $this->getAttribute($key);
975 $this->removeAttribute($key);
981 $state = $this->getState();