Lines Matching defs:offset

70      * If true, we are at the offset: end of th array + 1
74 * If true, we are at the offset: start of th array - 1
309 $offset = $this->getActualOffset();
310 array_splice($this->callStack, $offset, 1, []);
318 $this->moveToOffset($offset);
321 array_splice($this->callStack, $offset, 1, []);
328 $this->moveToOffset($offset - 1);
593 $offset = $this->getActualOffset();
594 array_splice($this->callStack, $offset, 0, [$call->toCallArray()]);
596 // we move it to the actual element (ie the key is offset +1)
598 $targetOffset = $offset + 1;
605 LogUtility::error("Unable to move the callback pointer to the offset ($targetOffset)", self::CANONICAL);
614 * Move pointer by offset
615 * @param $offset
619 function moveToOffset($offset)
621 if ($offset < 0) {
622 if ($offset === -1) {
626 throw new ExceptionBadArgument("The offset value of ($offset) is off limit");
629 for ($i = 0; $i < $offset; $i++) {
665 $offset = array_search($actualKey, array_keys($this->callStack), true);
666 array_splice($this->callStack, $offset + 1, 0, [$call->toCallArray()]);
730 * Return The offset (not the key):
850 $offset = null;
853 $offset = $actualKey + 1;
855 array_splice($this->callStack, $offset, 0, $instructions);
934 $offset = array_search($key, array_keys($this->callStack), true);
935 if ($offset !== false) {
938 * {@link array_splice()} delete also the given offset
940 array_splice($this->callStack, $offset + 1);
966 $offset = $this->getActualOffset();
977 if ($offset == null) {
980 $this->moveToOffset($offset);
1095 $offset = array_search($key, array_keys($this->callStack), true);
1096 if ($offset !== false) {
1099 * {@link array_splice()} delete also the given offset
1101 array_splice($this->callStack, 0, $offset);