You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
11 years ago
|
<?php
|
||
|
|
||
|
use yii\apidoc\models\ClassDoc;
|
||
|
use yii\apidoc\models\InterfaceDoc;
|
||
|
use yii\apidoc\models\TraitDoc;
|
||
|
/**
|
||
|
* @var ClassDoc|InterfaceDoc|TraitDoc $item
|
||
|
* @var boolean $protected
|
||
|
* @var yii\web\View $this
|
||
|
*/
|
||
|
|
||
|
if ($protected && count($item->getProtectedProperties()) == 0 || !$protected && count($item->getPublicProperties()) == 0) {
|
||
|
return;
|
||
|
} ?>
|
||
|
|
||
|
<div class="summary docProperty">
|
||
|
<h2><?= $protected ? 'Protected Properties' : 'Public Properties' ?></h2>
|
||
|
|
||
|
<p><a href="#" class="toggle">Hide inherited properties</a></p>
|
||
|
|
||
|
<table class="summaryTable">
|
||
|
<colgroup>
|
||
|
<col class="col-property" />
|
||
|
<col class="col-type" />
|
||
|
<col class="col-description" />
|
||
|
<col class="col-defined" />
|
||
|
</colgroup>
|
||
|
<tr>
|
||
|
<th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
|
||
|
</tr>
|
||
|
<?php foreach($item->properties as $property): ?>
|
||
|
<?php if($protected && $property->visibility == 'protected' || !$protected && $property->visibility != 'protected'): ?>
|
||
|
<tr<?= $property->definedBy != $item->name ? ' class="inherited"' : '' ?> id="<?= $property->name ?>">
|
||
|
<td><?php echo $this->context->subjectLink($property); ?></td>
|
||
|
<td><?php echo $this->context->typeLink($property->types); ?></td>
|
||
|
<td><?php echo $property->shortDescription; ?></td>
|
||
|
<td><?php echo $this->context->typeLink($property->definedBy); ?></td>
|
||
|
</tr>
|
||
|
<?php endif; ?>
|
||
|
<?php endforeach; ?>
|
||
|
</table>
|
||
|
</div>
|