コード例 #1
0
ファイル: htmlWriter.php プロジェクト: Naatan/CrossORM
 function _sourceLocation($doc)
 {
     if ($this->_doclet->includeSource()) {
         $url = strtolower(str_replace(DIRECTORY_SEPARATOR, '/', $doc->sourceFilename()));
         echo '<a href="', str_repeat('../', $this->_depth), 'source/', $url, '.html#line', $doc->sourceLine(), '" class="location">', $doc->location(), "</a>\n\n";
     } else {
         echo '<div class="location">', $doc->location(), "</div>\n";
     }
 }
コード例 #2
0
ファイル: htmlWriter.php プロジェクト: nickdunn/phpdoctor
 function _sourceLocation($doc)
 {
     if ($this->_doclet->includeSource()) {
         $url = strtolower(str_replace(DIRECTORY_SEPARATOR, '/', $doc->sourceFilename()));
         return str_repeat('../', $this->_depth) . 'source/' . $url . '.html#line' . $doc->sourceLine() . '" class="location">' . $doc->location();
     } else {
         return $doc->location();
     }
 }