fixed apidoc short description

fixes #2797
This commit is contained in:
Carsten Brandt
2014-05-25 22:26:21 +02:00
parent e3ee1b0700
commit 85f49e0cfe
6 changed files with 27 additions and 17 deletions

View File

@@ -5,6 +5,8 @@
* @var yii\web\View $this
*/
$type = $object instanceof \yii\apidoc\models\TypeDoc ? $object : $object->definedBy;
$see = [];
foreach ($object->tags as $tag) {
/** @var $tag phpDocumentor\Reflection\DocBlock\Tag\SeeTag */
@@ -13,7 +15,7 @@ foreach ($object->tags as $tag) {
if (strpos($ref, '://') === false) {
$ref = '[[' . $ref . ']]';
}
$see[] = rtrim(\yii\apidoc\helpers\ApiMarkdown::process($ref . ' ' . $tag->getDescription(), $object->definedBy, true), ". \r\n");
$see[] = rtrim(\yii\apidoc\helpers\ApiMarkdown::process($ref . ' ' . $tag->getDescription(), $type, true), ". \r\n");
}
}
if (empty($see)) {