Carsten Brandt
11 years ago
11 changed files with 372 additions and 86 deletions
@ -0,0 +1,34 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
use yii\apidoc\models\ClassDoc; |
||||||
|
/** |
||||||
|
* @var ClassDoc $item |
||||||
|
* @var yii\web\View $this |
||||||
|
*/ |
||||||
|
|
||||||
|
if (empty($item->constants)) { |
||||||
|
return; |
||||||
|
} ?> |
||||||
|
<div class="summary docConst"> |
||||||
|
<h2>Constants</h2> |
||||||
|
|
||||||
|
<p><a href="#" class="toggle">Hide inherited constants</a></p> |
||||||
|
|
||||||
|
<table class="summaryTable"> |
||||||
|
<colgroup> |
||||||
|
<col class="col-const" /> |
||||||
|
<col class="col-description" /> |
||||||
|
<col class="col-defined" /> |
||||||
|
</colgroup> |
||||||
|
<tr> |
||||||
|
<th>Constant</th><th>Description</th><th>Defined By</th> |
||||||
|
</tr> |
||||||
|
<?php foreach($item->constants as $constant): ?> |
||||||
|
<tr<?= $constant->definedBy != $item->name ? ' class="inherited"' : '' ?> id="<?= $constant->name ?>">
|
||||||
|
<td><?= $this->context->subjectLink($constant) ?></td>
|
||||||
|
<td><?= $constant->shortDescription ?></td>
|
||||||
|
<td><?= $this->context->typeLink($constant->definedBy) ?></td>
|
||||||
|
</tr> |
||||||
|
<?php endforeach; ?> |
||||||
|
</table> |
||||||
|
</div> |
@ -0,0 +1,34 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
use yii\apidoc\models\ClassDoc; |
||||||
|
/** |
||||||
|
* @var ClassDoc $item |
||||||
|
* @var yii\web\View $this |
||||||
|
*/ |
||||||
|
|
||||||
|
if (empty($item->events)) { |
||||||
|
return; |
||||||
|
} ?> |
||||||
|
<div class="summary docEvent"> |
||||||
|
<h2>Events</h2> |
||||||
|
|
||||||
|
<p><a href="#" class="toggle">Hide inherited events</a></p> |
||||||
|
|
||||||
|
<table class="summaryTable"> |
||||||
|
<colgroup> |
||||||
|
<col class="col-event" /> |
||||||
|
<col class="col-description" /> |
||||||
|
<col class="col-defined" /> |
||||||
|
</colgroup> |
||||||
|
<tr> |
||||||
|
<th>Event</th><th>Description</th><th>Defined By</th> |
||||||
|
</tr> |
||||||
|
<?php foreach($item->events as $event): ?> |
||||||
|
<tr<?= $event->definedBy != $item->name ? ' class="inherited"' : '' ?> id="<?= $event->name ?>">
|
||||||
|
<td><?= $this->context->subjectLink($event) ?></td>
|
||||||
|
<td><?= $event->shortDescription ?></td>
|
||||||
|
<td><?= $this->context->typeLink($event->definedBy) ?></td>
|
||||||
|
</tr> |
||||||
|
<?php endforeach; ?> |
||||||
|
</table> |
||||||
|
</div> |
@ -0,0 +1,40 @@ |
|||||||
|
<?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->getProtectedMethods()) == 0 || !$protected && count($item->getPublicMethods()) == 0) { |
||||||
|
return; |
||||||
|
} ?> |
||||||
|
|
||||||
|
<div class="summary docMethod"> |
||||||
|
<h2><?= $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($item->methods as $method): ?> |
||||||
|
<?php if($protected && $method->visibility == 'protected' || !$protected && $method->visibility != 'protected'): ?> |
||||||
|
<tr<?= $method->definedBy != $item->name ? ' class="inherited"' : '' ?> id="<?= $method->name ?>">
|
||||||
|
<td><?= $this->context->subjectLink($method, $method->name.'()') ?></td>
|
||||||
|
<td><?= $method->shortDescription ?></td>
|
||||||
|
<td><?= $this->context->typeLink($method->definedBy) ?></td>
|
||||||
|
</tr> |
||||||
|
<?php endif; ?> |
||||||
|
<?php endforeach; ?> |
||||||
|
</table> |
||||||
|
</div> |
@ -0,0 +1,42 @@ |
|||||||
|
<?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> |
Loading…
Reference in new issue