Lines Matching refs:index
67 $index = $INPUT->int('codeblockindex');
68 if ($index < 0) {
72 $block = $this->getBlockInfo($ID, $index);
105 $index = $INPUT->int('codeblockindex');
106 if ($index < 0) {
111 $block = $this->getBlockInfo($ID, $index);
157 * @param int $index Block index (0-based)
160 protected function getBlockInfo($id, $index) argument
163 if ($this->cachedIndex === $index && $this->cachedBlock !== null) {
172 $this->cachedIndex = $index;
173 $this->cachedBlock = $this->findBlockRange($text, $index);
181 * @param int $index Target index (0-based)
184 protected function findBlockRange($text, $index) argument
195 if (isset($matches[2][$index])) {
198 $content = $matches[2][$index][0];
199 $contentStart = $matches[2][$index][1];
203 $openTag = $matches[1][$index][0];
204 $closeTag = $matches[3][$index][0];