public function getOutputFile() { return \Zephir\Documentation::classUrl($this->class); }
/** * Generate an url relative to the current directory * * @param string $url the url we want to reach * @return string the relative path to the url */ public function url($url) { if (is_string($url)) { if ($url[0] == "/") { return $this->getPathToRoot() . ltrim($url, "/"); } elseif (is_string($url)) { return $url; } } elseif ($url instanceof ClassDefinition) { return $this->url(Documentation::classUrl($url)); } elseif ($url instanceof CompilerFile) { return $this->url(Documentation::classUrl($url->getClassDefinition())); } return ""; }