@@ -1580,8 +1580,37 @@ public function getMethodSynopsisDocument(array $funcMap, array $aliasMap): ?str
1580
1580
/* Creation of <refsect1 role="changelog"> */
1581
1581
$ changelogRefSec = $ this ->getChangelogSection ($ doc );
1582
1582
$ refentry ->appendChild ($ changelogRefSec );
1583
+ $ refentry ->appendChild (new DOMText ("\n\n " ));
1583
1584
1584
- // TODO Examples, Notes, and See Also sections
1585
+ // TODO Examples, and Notes sections
1586
+
1587
+ /* Creation of <refsect1 role="seealso"> */
1588
+ $ seeAlsoRefSec = $ doc ->createElement ('refsect1 ' );
1589
+ $ seeAlsoRefSec ->setAttribute ('role ' , 'seealso ' );
1590
+ $ seeAlsoRefSec ->appendChild (new DOMText ("\n " ));
1591
+ $ refTitleSeeAlso = $ doc ->createEntityReference ('reftitle.seealso ' );
1592
+ $ seeAlsoRefSec ->appendChild ($ refTitleSeeAlso );
1593
+ $ seeAlsoRefSec ->appendChild (new DOMText ("\n " ));
1594
+
1595
+ /* TODO Actually generate a markup for class names, functions and links?
1596
+ <simplelist>
1597
+ <member><methodname>ClassName::otherMethodName</methodname></member>
1598
+ <member><function>some_function</function></member>
1599
+ <member>The <link linkend="something">something appendix</link></member>
1600
+ </simplelist>
1601
+ */
1602
+ $ seeAlsoMember = $ doc ->createElement ('member ' );
1603
+ $ seeAlsoMember ->appendChild (new DOMText ("Method name, function, or link to reference " ));
1604
+
1605
+ $ seeAlsoList = $ doc ->createElement ('simplelist ' );
1606
+ $ seeAlsoList ->appendChild (new DOMText ("\n " ));
1607
+ $ seeAlsoList ->appendChild ($ seeAlsoMember );
1608
+ $ seeAlsoList ->appendChild (new DOMText ("\n " ));
1609
+
1610
+ $ seeAlsoRefSec ->appendChild ($ seeAlsoList );
1611
+ $ seeAlsoRefSec ->appendChild (new DOMText ("\n " ));
1612
+
1613
+ $ refentry ->appendChild ($ seeAlsoRefSec );
1585
1614
1586
1615
$ refentry ->appendChild (new DOMText ("\n\n" ));
1587
1616
0 commit comments