Lines Matching refs:call
23 * A wrapper around what's called a call
146 const CANONICAL = "call";
149 private $call;
159 * @param $call - the instruction array (ie called a call)
161 public function __construct(&$call, $key = "")
163 $this->call = &$call;
177 * @return Call - a call
203 $call = [
213 return new Call($call);
217 * Insert a dokuwiki call
225 $call = [
230 return new Call($call);
239 * @param Call $call
242 public static function createFromCall(Call $call): Call
244 return self::createFromInstruction($call->toCallArray());
250 * Return the tag name from a call array
269 $mode = $this->call[0];
275 $dokuWikiNodeName = $this->call[0];
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];
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];
413 * Return the attributes of a call
421 return $this->call[1];
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";
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]);
501 return $this->call[1][1][PluginUtility::DISPLAY];
512 $mode = $this->call[0];
555 LogUtility::warning("The display of the call with the mode (" . $mode . ") is unknown");
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];
605 LogUtility::msg("You can't add an attribute to the non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING, "support");
614 $mode = $this->call[0];
616 return $this->call[1][1][PluginUtility::CONTEXT] ?? null;
618 LogUtility::msg("You can't ask for a context from a non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING, "support");
630 return $this->call;
682 $mode = $this->call[0];
684 return $this->call[1][1][PluginUtility::PAYLOAD];
686 LogUtility::msg("You can't ask for a payload from a non plugin call mode (" . $mode . ").", LogUtility::LVL_MSG_WARNING, "support");
694 $this->call[1][1][PluginUtility::CONTEXT] = $value;
716 return $this->call[0] === "plugin";
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;
745 LogUtility::msg("This modification of state is not yet supported for a native call");
758 return $this->call[2];
825 $this->call[1][1][PluginUtility::PAYLOAD] = $text;
827 LogUtility::msg("Setting the payload for a non-native call ($this) is not yet implemented");
832 * @return bool true if the call is a text call (same as dom text node)
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");
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)");
883 $this->call[1][0] = $content;
886 LogUtility::msg("Setting the captured content on a call for the tag ($tagName) is not yet implemented", LogUtility::LVL_MSG_ERROR);
899 $this->call[1][1][PluginUtility::DISPLAY] = $display;
901 LogUtility::msg("You can't set a display on a non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING);
914 return $this->call[0];
918 * Return if this an unmatched call with space
934 $mode = $this->call[0];
936 $value = $this->call[1][1][PluginUtility::EXIT_CODE] ?? null;
942 LogUtility::msg("You can't ask for the exit code from a non plugin call mode (" . $mode . ").", LogUtility::LVL_MSG_WARNING, "support");