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];
376 $data = &$this->call[1][1];
390 $caller = $this->call[0];
393 return $this->call[1][3];
395 return '[[' . $this->call[1][0] . '|' . $this->call[1][1] . ']]';
400 return $this->call[1][0];
402 if (isset($this->call[1][0]) && is_string($this->call[1][0])) {
403 return $this->call[1][0];
421 return $this->call[1];
425 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);
434 $message = "The attributes value are not an array for the call ($this), the value was wrapped in an array";
456 if ($this->call[0] == "plugin") {
457 $match = $this->call[1][3];
459 $this->call[0] = "plugin";
462 $this->call[1] = array(
486 return isset($this->call[1][1][PluginUtility::DISPLAY]);
499 return $this->call[1][1][PluginUtility::DISPLAY];
510 $mode = $this->call[0];
553 LogUtility::warning("The display of the call with the mode (" . $mode . ") is unknown");
570 $mode = $this->call[0];
572 $pluginDokuData = $this->call[1];
582 $mode = $this->call[0];
586 $this->call[0] = "cdata";
587 $this->call[1] = array(
597 $mode = $this->call[0];
599 $this->call[1][1][PluginUtility::ATTRIBUTES][$key] = $value;
601 return $this->call[1][1][PluginUtility::ATTRIBUTES][$key];
603 LogUtility::msg("You can't add an attribute to the non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING, "support");
612 $mode = $this->call[0];
614 return $this->call[1][1][PluginUtility::CONTEXT] ?? null;
616 LogUtility::msg("You can't ask for a context from a non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING, "support");
628 return $this->call;
680 $mode = $this->call[0];
682 return $this->call[1][1][PluginUtility::PAYLOAD];
684 LogUtility::msg("You can't ask for a payload from a non plugin call mode (" . $mode . ").", LogUtility::LVL_MSG_WARNING, "support");
692 $this->call[1][1][PluginUtility::CONTEXT] = $value;
714 return $this->call[0] === "plugin";
729 return $this->call;
735 if ($this->call[0] == "plugin") {
737 $this->call[1][2] = $state;
739 if (isset($this->call[1][1][PluginUtility::STATE])) {
740 $this->call[1][1][PluginUtility::STATE] = $state;
743 LogUtility::msg("This modification of state is not yet supported for a native call");
756 return $this->call[2];
823 $this->call[1][1][PluginUtility::PAYLOAD] = $text;
825 LogUtility::msg("Setting the payload for a non-native call ($this) is not yet implemented");
830 * @return bool true if the call is a text call (same as dom text node)
846 $this->call[1][1][PluginUtility::ATTRIBUTES][TagAttributes::TYPE_KEY] = $type;
848 LogUtility::msg("This is not a plugin call ($this), you can't set the type");
868 $this->call[1][0] = PluginUtility::getComponentName($tag);
870 LogUtility::msg("The call ($this) is a native call and we don't support yet the modification of the component to ($tag)");
881 $this->call[1][0] = $content;
884 LogUtility::msg("Setting the captured content on a call for the tag ($tagName) is not yet implemented", LogUtility::LVL_MSG_ERROR);
897 $this->call[1][1][PluginUtility::DISPLAY] = $display;
899 LogUtility::msg("You can't set a display on a non plugin call mode (" . $mode . ")", LogUtility::LVL_MSG_WARNING);
912 return $this->call[0];
916 * Return if this an unmatched call with space
932 $mode = $this->call[0];
934 $value = $this->call[1][1][PluginUtility::EXIT_CODE] ?? null;
940 LogUtility::msg("You can't ask for the exit code from a non plugin call mode (" . $mode . ").", LogUtility::LVL_MSG_WARNING, "support");