Lines Matching refs:this

6  * COPYING  file in the root directory of this source tree.
95 $this->handler = $handler;
137 // $this->callStackType = self::CALLSTACK_WRITER;
140 $this->callStack = &$writerCalls;
145 // $this->callStackType = self::CALLSTACK_MAIN;
165 $this->callStack = &$handler->calls;
170 $this->moveToEnd();
231 reset($this->callStack);
291 \syntax_plugin_combo_para::fromEolToParagraphUntilEndOfStack($this, $attributes);
307 $actualCall = $this->getActualCall();
309 $offset = $this->getActualOffset();
310 array_splice($this->callStack, $offset, 1, []);
316 * and this is an empty paragraph
318 $this->moveToOffset($offset);
319 if (!$this->isPointerAtEnd()) {
320 if ($this->getActualCall()->getTagName() == 'eol') {
321 array_splice($this->callStack, $offset, 1, []);
328 $this->moveToOffset($offset - 1);
343 if ($this->endWasReached) {
347 if ($this->startWasReached) {
351 $actualCallKey = key($this->callStack);
352 $actualCallArray = &$this->callStack[$actualCallKey];
365 if ($this->startWasReached) {
366 $this->startWasReached = false;
367 $result = reset($this->callStack);
372 return $this->getActualCall();
380 $next = next($this->callStack);
382 $this->endWasReached = true;
386 return $this->getActualCall();
413 if (empty($this->callStack)) {
417 if (!$this->endWasReached) {
418 $actualCall = $this->getActualCall();
429 while ($actualCall = $this->previous()) {
459 if ($this->endWasReached) {
460 $this->endWasReached = false;
461 $return = end($this->callStack);
466 return $this->getActualCall();
469 $prev = prev($this->callStack);
471 $this->startWasReached = true;
474 return $this->getActualCall();
488 while ($this->next()) {
490 $actualCall = $this->getActualCall();
503 return $this->getActualCall();
517 if ($this->startWasReached) {
518 $this->startWasReached = false;
520 end($this->callStack);
521 return $this->next();
534 if (empty($this->callStack)) {
538 if($this->endWasReached){
542 $actualCall = $this->getActualCall();
549 while ($this->next()) {
551 $actualCall = $this->getActualCall();
573 if ($level == 0 && !$this->endWasReached) {
574 return $this->getActualCall();
587 if ($this->endWasReached) {
589 $this->callStack[] = $call->toCallArray();
593 $offset = $this->getActualOffset();
594 array_splice($this->callStack, $offset, 0, [$call->toCallArray()]);
599 $this->moveToOffset($targetOffset);
623 $this->moveToStart();
628 $this->resetPointer();
630 $result = $this->next();
643 $this->resetPointer();
645 next($this->callStack);
647 $actualKey = key($this->callStack);
663 $actualKey = key($this->callStack);
665 $offset = array_search($actualKey, array_keys($this->callStack), true);
666 array_splice($this->callStack, $offset + 1, 0, [$call->toCallArray()]);
669 $this->moveToKey($actualKey);
673 if ($this->endWasReached === true) {
674 $this->callStack[] = $call->toCallArray();
677 if ($this->startWasReached === true) {
679 array_unshift($this->callStack, $call->toCallArray());
680 $this->previous();
691 return key($this->callStack);
701 if (!$this->isPointerAtEnd()) {
702 $nextCall = $this->next();
705 $this->insertBefore(
709 $this->previous();
712 $this->previous();
720 return $this->endWasReached;
726 return $this->handler;
739 $actualKey = key($this->callStack);
740 return array_search($actualKey, array_keys($this->callStack), true);
746 reset($this->callStack);
747 $this->endWasReached = false;
753 $this->resetPointer();
754 return $this->previous();
771 * (this not the {@link end php end} but one further
773 if (!$this->endWasReached && !$this->startWasReached && $this->getActualCall()->getState() == DOKU_LEXER_EXIT) {
775 $this->moveToPreviousCorrespondingOpeningCall();
784 while ($actualCall = $this->previous()) {
824 while ($this->next()) {
825 $actualCall = $this->getActualCall();
839 array_splice($this->callStack, count($this->callStack), 0, $instructions);
840 return $this;
845 * @return $this
851 $actualKey = $this->getActualKey();
855 array_splice($this->callStack, $offset, 0, $instructions);
857 $this->moveToKey($actualKey);
859 return $this;
867 $this->callStack[] = $call->toCallArray();
875 if (empty($this->callStack)) {
880 if (!$this->endWasReached) {
881 $actualCall = $this->getActualCall();
889 while ($actualCall = $this->previous()) {
914 if ($level == 0 && !$this->startWasReached) {
915 return $this->getActualCall();
934 $offset = array_search($key, array_keys($this->callStack), true);
940 array_splice($this->callStack, $offset + 1);
953 $this->appendCallAtTheEnd($call);
962 * this should be the length of the string of the page
966 $offset = $this->getActualOffset();
969 $this->moveToEnd();
970 while ($actualCall = $this->previous()) {
978 $this->moveToEnd();
980 $this->moveToOffset($offset);
988 return $this->callStack;
994 while ($actualCall = $this->next()) {
997 return $this->getActualCall();
1014 if (empty($this->callStack)) {
1021 $actualCall = $this->getActualCall();
1033 while ($actualCall = $this->next()) {
1060 $actualKey = $this->getActualKey();
1062 if ($this->endWasReached) {
1063 $actualKey = sizeof($this->callStack);
1065 if ($this->startWasReached) {
1072 $this->next();
1074 $this->previous();
1077 if ($this->endWasReached) {
1080 if ($this->startWasReached) {
1083 return $this->getActualCall();
1095 $offset = array_search($key, array_keys($this->callStack), true);
1101 array_splice($this->callStack, 0, $offset);
1110 return $this->endWasReached;
1115 $this->callStack = [];
1124 $firstChildTag = $this->moveToFirstChildTag();
1129 while ($actualCall = $this->moveToNextSiblingTag()) {
1138 $this->appendCallAtTheEnd($call);