Skip to content

Commit

Permalink
add support enum links
Browse files Browse the repository at this point in the history
  • Loading branch information
SakiTakamachi committed Jan 29, 2025
1 parent b4c4bf8 commit 71feff8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpdotnet/phd/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function setMembership($membership) {
public function format_reference($open, $name, $attrs, $props) {
if (isset($attrs[Reader::XMLNS_DOCBOOK]['role'])) {
$name = match ($attrs[Reader::XMLNS_DOCBOOK]['role']) {
"class" => "phpdoc:classref",
"class", "enum" => "phpdoc:classref",
"exception" => "phpdoc:exceptionref",
default => $name,
};
Expand Down
7 changes: 7 additions & 0 deletions phpdotnet/phd/Package/PHP/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ abstract class Package_PHP_XHTML extends Package_Generic_XHTML {
'classsynopsis' => 'format_classsynopsis_oo_name_text',
]
],
'enumname' => [
/* DEFAULT */ 'format_classname_text',
'oointerface' => [
/* DEFAULT */ 'format_classname_text',
'classsynopsis' => 'format_classsynopsis_oo_name_text',
]
],
'methodname' => array(
/* DEFAULT */ 'format_function_text',
'constructorsynopsis' => array(
Expand Down

0 comments on commit 71feff8

Please sign in to comment.