/** * Returns the usage description or null if none is set. * * @return string|null */ public function getUsageDescription() { if ($this->usage_description === null) { $refl = new DocBlox_Reflection_DocBlock(new ReflectionObject($this)); $this->usage_description = $refl->getLongDescription()->getContents(); } return $this->usage_description; }
} ob_start(); ?>.. _<?=$method?>: <?=$method_sig?> <?=str_repeat('+', strlen($method_sig))?> <?=$docblox->getShortDescription()?> <?=$docblox->getLongDescription()->getContents()?> <? $rst .= ob_get_clean(); $tags = $docblox->getTagsByName('param'); if (!empty($tags)) { $rst .= " Arguments "; foreach ($tags as $tag) { list($name, $content) = array($tag->getName(), $tag->getContent()); $content = str_replace("\n", ' - ', $content); $rst .= "- ``$content``\n";