segments as $segment) if ($segment->name == $name && (!$subname || $segment->values[1] == $subname)) return $segment->getValue ($key, $type); if ($this->parent) return $this->parent->getValue ($name, $key, $type, $subname); return NULL; } } ?>