/** * Returns place in document * @return string */ function dumpLocation() { return $this->parent ? (($p = $this->parent->dumpLocation()) ? $p . ' > ' : '') . $this->tag . '(' . $this->typeIndex() . ')' : ''; }