Lines Matching +defs:style +defs:name
103 public function enterReference($name, $data) {
104 $this->getCurrentContext()->enterReference($name, $data);
160 public function enterReference($name, $data) {
162 $this->reference = new refnotes_parser_reference($name, $data);
201 * Returns a namespace given it's name. The namespace is created if it doesn't exist yet.
203 public function getNamespace($name) {
204 $result = $this->findNamespace($name);
207 $result = $this->createNamespace($name);
214 * Finds a namespace given it's name
216 protected function findNamespace($name) {
219 if (array_key_exists($name, $this->namespace)) {
220 $result = $this->namespace[$name];
229 public function findParentNamespace($name) {
230 while (($name != '') && !array_key_exists($name, $this->namespace)) {
231 $name = refnotes_namespace::getParentName($name);
234 return ($name != '') ? $this->namespace[$name] : NULL;
240 public function styleNamespace($namespaceName, $style) {
243 if (array_key_exists('inherit', $style)) {
244 $source = $this->getNamespace($style['inherit']);
248 $namespace->setStyle($style);
270 protected function createNamespace($name) {
271 if ($name != ':') {
272 $parentName = refnotes_namespace::getParentName($name);
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];
343 $note = $this->getNote($attributes['ns'], $attributes['name']);
434 public function addStyle($namespaceName, $style) {
435 $this->styleStash->add($this->getNamespace($namespaceName), $style);
470 $note = $this->getNote($attributes['ns'], $attributes['name']);