Lines Matching refs:this

45         $this->context = array(new refnotes_parsing_context());
46 $this->lexer = NULL;
47 $this->handler = NULL;
54 $this->lexer = $lexer;
61 $this->context[] = new refnotes_parsing_context();
68 $this->handler = $handler;
70 unset($this->context[count($this->context) - 1]);
77 $this->callWriter = new refnotes_nested_call_writer($this->handler->getCallWriter(), $this->handler);
79 $this->callWriter->connect();
80 $this->lexer->parse($text);
81 $this->callWriter->disconnect();
83 return $this->callWriter->calls;
90 return end($this->context);
97 return $this->getCurrentContext()->canHandle($state);
104 $this->getCurrentContext()->enterReference($name, $data);
111 return $this->getCurrentContext()->exitReference();
125 $this->reset();
132 $this->handling = false;
133 $this->reference = NULL;
142 $result = !$this->handling;
146 $result = $this->handling;
161 $this->handling = true;
162 $this->reference = new refnotes_parser_reference($name, $data);
169 $reference = $this->reference;
171 $this->reset();
188 $this->presetStyle = refnotes_configuration::load('namespaces');
189 $this->namespace = array();
190 $this->mapping = array();
197 return count($this->namespace);
204 $result = $this->findNamespace($name);
207 $result = $this->createNamespace($name);
219 if (array_key_exists($name, $this->namespace)) {
220 $result = $this->namespace[$name];
230 while (($name != '') && !array_key_exists($name, $this->namespace)) {
234 return ($name != '') ? $this->namespace[$name] : NULL;
241 $namespace = $this->getNamespace($namespaceName);
244 $source = $this->getNamespace($style['inherit']);
256 $this->mapping[$ns] = $namespaceName;
264 $this->mapping = array_diff($this->mapping, array($namespaceName));
273 $parent = $this->getNamespace($parentName);
274 $this->namespace[$name] = new refnotes_namespace($name, $parent);
277 $this->namespace[$name] = new refnotes_namespace($name);
280 if (array_key_exists($name, $this->presetStyle)) {
281 $this->namespace[$name]->setStyle($this->presetStyle[$name]);
284 return $this->namespace[$name];
291 $scope = $this->getNamespace($namespaceName)->getActiveScope();
294 if (($note == NULL) && array_key_exists($namespaceName, $this->mapping)) {
295 $scope = $this->getNamespace($this->mapping[$namespaceName])->getActiveScope();
301 $note = $this->createNote($scope, $namespaceName, $noteName);
343 $note = $this->getNote($attributes['ns'], $attributes['name']);
358 if ($this->leftoversRenderingBlocks == 0) {
359 foreach ($this->namespace as $namespace) {
365 $this->clearNamespaceMapping($namespaceName);
367 $namespace = $this->findNamespace($namespaceName);
382 ++$this->leftoversRenderingBlocks;
386 if ($this->leftoversRenderingBlocks > 0) {
387 --$this->leftoversRenderingBlocks;
413 $this->styleStash = new refnotes_namespace_style_stash($this);
414 $this->mappingStash = new refnotes_namespace_mapping_stash();
421 $this->getNamespace($namespaceName)->markScopeStart($callIndex);
428 $this->getNamespace($namespaceName)->markScopeEnd($callIndex);
435 $this->styleStash->add($this->getNamespace($namespaceName), $style);
442 return $this->styleStash;
449 $this->mappingStash->add($this->getNamespace($namespaceName), $map);
456 return $this->mappingStash;
463 $this->namespace = array();
470 $note = $this->getNote($attributes['ns'], $attributes['name']);
482 $this->clearNamespaceMapping($namespaceName);
485 foreach ($this->namespace as $namespace) {
490 $namespace = $this->findNamespace($namespaceName);