function getPath($separator = ".", $with_name = false) { $path = $this->parent->getPath($separator, $with_name); if (self::$_get_path_full) { $path[] = $this->self_pos + 1; } else { $path[count($path) - 1] = $path[count($path) - 1] . "[" . ($this->self_pos + 1) . "]"; } return $path; }