protected function getDescription(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '') { $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description'); if (!is_null($tag)) { return nl2br(htmlspecialchars($tag->value)); } else { return ''; } }
public function getComment(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '') { $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description'); if (!is_null($tag)) { return $this->getTaggedValue($tag->value, self::getUID('Tag_documentation')); } else { return ''; } }
public function getComment(PHP_UML_Metamodel_Stereotype $s, $annotatedElement = '') { $tag = PHP_UML_Metamodel_Helper::getStereotypeTag($s, 'description'); if (!is_null($tag)) { return '<ownedComment xmi:type="uml:Comment" xmi:id="' . self::getUID() . '" annotatedElement="' . $annotatedElement . '"><body>' . htmlspecialchars($tag->value) . '</body></ownedComment>'; } else { return ''; } }