Skip to content

Commit

Permalink
class reference - fixed method anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdomba committed Feb 8, 2011
1 parent 5076728 commit 1bc6d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions build/commands/ApiCommand.php
Expand Up @@ -301,8 +301,6 @@ public function renderSubjectUrl($type,$subject,$text=null)
if($text===null)
$text=$subject;
if(isset($this->classes[$type])) {
if(substr($text,-2)==='()')
$subject=$this->fixMethodAnchor($type,$subject);
return '{{'.$type.'::'.$subject.'-detail'.'|'.$text.'}}';
}
else
Expand Down
5 changes: 3 additions & 2 deletions build/commands/api/views/methodSummary.php
Expand Up @@ -16,8 +16,9 @@
</tr>
<?php foreach($class->methods as $method): ?>
<?php if($protected && $method->isProtected || !$protected && !$method->isProtected): ?>
<tr<?php echo $method->isInherited?' class="inherited"':''; ?> id="<?php echo $method->name; ?>">
<td><?php echo $this->renderSubjectUrl($method->definedBy,$method->name,$method->name.'()'); ?></td>
<?php $methodAnchor=$this->fixMethodAnchor($method->definedBy,$method->name); ?>
<tr<?php echo $method->isInherited?' class="inherited"':''; ?> id="<?php echo $methodAnchor; ?>">
<td><?php echo $this->renderSubjectUrl($method->definedBy,$methodAnchor,$method->name.'()'); ?></td>
<td><?php echo $method->introduction; ?></td>
<td><?php echo $this->renderTypeUrl($method->definedBy); ?></td>
</tr>
Expand Down

0 comments on commit 1bc6d88

Please sign in to comment.