Files
yii/build/commands/api/views/methodSummary.php
2011-02-08 11:42:22 +00:00

28 lines
1.1 KiB
PHP

<?php if($protected && !$class->protectedMethodCount || !$protected && !$class->publicMethodCount) return; ?>
<div class="summary docMethod">
<h2><?php echo $protected ? 'Protected Methods' : 'Public Methods'; ?></h2>
<p><a href="#" class="toggle">Hide inherited methods</a></p>
<table class="summaryTable">
<colgroup>
<col class="col-method" />
<col class="col-description" />
<col class="col-defined" />
</colgroup>
<tr>
<th>Method</th><th>Description</th><th>Defined By</th>
</tr>
<?php foreach($class->methods as $method): ?>
<?php if($protected && $method->isProtected || !$protected && !$method->isProtected): ?>
<?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>
<?php endif; ?>
<?php endforeach; ?>
</table>
</div>