Lines Matching refs:call

25  * This is a class that manipulate the call stack.
27 * A call stack is composed of call (ie array)
28 * A tag is a call that has a state {@link DOKU_LEXER_ENTER} or {@link DOKU_LEXER_SPECIAL}
29 * An opening call is a call with the {@link DOKU_LEXER_ENTER}
30 * An closing call is a call with the {@link DOKU_LEXER_EXIT}
49 * * writer is when there is a temporary call stack from the writer
60 * @var array the call stack
83 * the {@link Doku_Handler::$calls call stack of the handler}
89 * to call the {@link CallStack::closeAndResetPointer()} function
102 * to capture the call
125 LogUtility::msg("$headErrorMessage. The call writer ($callWriterClass) provided cannot manipulate the callstack (ie the calls of the call writer are private).", LogUtility::LVL_MSG_ERROR);
209 * @return string - the content of the call stack as if it was in the file
235 * Delete from the call stack
275 * Process the EOL call to the end of stack
276 * replacing them with paragraph call
296 * Delete the call where the pointer is
301 * @return Call the deleted call
335 * @return Call|null - get a reference to the actual call
336 * This function returns a {@link Call call} object
344 LogUtility::msg("The actual call cannot be ask because the end of the stack was reached", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
348 LogUtility::msg("The actual call cannot be ask because the start of the stack was reached", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
399 * From an exit call, move the corresponding Opening call
402 * to retrieve the {@link DOKU_LEXER_ENTER} call
454 * @return Call|false the previous call or false if there is no more previous call
463 // empty array (first call on the stack)
481 * Return the first enter or special child call (ie a tag)
545 LogUtility::msg("A next sibling can be asked only from a tag call. The state is $enterState", LogUtility::LVL_MSG_ERROR, "support");
581 * @param Call $call
582 * @return Call the inserted call
585 function insertBefore(Call $call): Call
589 $this->callStack[] = $call->toCallArray();
594 array_splice($this->callStack, $offset, 0, [$call->toCallArray()]);
610 return $call;
655 * If you need to process the call that you just
656 * inserted, you may want to call {@link CallStack::next()}
657 * @param Call $call
661 function insertAfter(Call $call): void
666 array_splice($this->callStack, $offset + 1, 0, [$call->toCallArray()]);
674 $this->callStack[] = $call->toCallArray();
679 array_unshift($this->callStack, $call->toCallArray());
695 * Insert an EOL call if the next call is not an EOL
758 * @return Call|false the parent call or false if there is no parent
760 * call first the {@link CallStack::moveToPreviousCorrespondingOpeningCall()}
770 * When the end is reached, there is no call
863 * @param Call $call
865 public function appendCallAtTheEnd(Call $call)
867 $this->callStack[] = $call->toCallArray();
884 LogUtility::msg("A previous sibling can be asked only from a tag call. The state is $enterState", LogUtility::LVL_MSG_ERROR, "support");
922 * Delete all calls after the passed call
929 * @param Call $call
931 public function deleteAllCallsAfter(Call $call)
933 $key = $call->getKey();
942 LogUtility::msg("The call ($call) could not be found in the callStack. We couldn't therefore delete the calls after");
952 foreach ($calls as $call) {
953 $this->appendCallAtTheEnd($call);
1005 * Move the pointer to the corresponding exit call
1023 LogUtility::msg("You are not on the stack (start or end), you can't ask for the corresponding exit call", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
1028 LogUtility::msg("You are not on an enter tag ($actualState). You can't ask for the corresponding exit call .", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
1057 public function moveToCall(Call $call): ?Call
1059 $targetKey = $call->getKey();
1088 * Delete all call before (Don't delete the passed call)
1089 * @param Call $call
1092 public function deleteAllCallsBefore(Call $call)
1094 $key = $call->getKey();
1103 LogUtility::msg("The call ($call) could not be found in the callStack. We couldn't therefore delete the before");
1137 foreach($calls as $call){
1138 $this->appendCallAtTheEnd($call);